In Spring Security, the _____ is responsible for validating the credentials provided by the user.

  • AuthenticationProvider
  • PasswordEncoder
  • SecurityContextHolder
  • UserDetailsManager
In Spring Security, the AuthenticationProvider is responsible for validating the credentials provided by the user. It's a core component that handles authentication requests and returns an Authentication object if the credentials are valid. UserDetailsManager is not directly responsible for validation. SecurityContextHolder is used for accessing the current security context, and PasswordEncoder is used for encoding and decoding passwords.
Add your answer
Loading...

Leave a comment

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