To secure REST APIs in Spring Security, the _____ class can be used to ensure that the user is authenticated for any HTTP request.

  • AuthenticationFilter
  • AuthorizationFilter
  • SecurityFilterChain
  • UserDetailsService
In Spring Security, the SecurityFilterChain class is used to ensure that the user is authenticated for any HTTP request. It defines a chain of filters that can be applied to incoming requests to handle various security-related tasks, including authentication. This class is essential for securing REST APIs.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *