In Spring Security, which interface is primarily used for authentication and authorization?

  • AuthenticationProvider
  • PasswordEncoder
  • RoleProvider
  • UserDetails
In Spring Security, the primary interface used for authentication and authorization is the AuthenticationProvider. It's responsible for authenticating users based on provided credentials and creating an Authentication object that represents the authenticated user. While UserDetails is important for user details, PasswordEncoder handles password encoding, and RoleProvider is not a standard Spring Security interface.
Add your answer
Loading...

Leave a comment

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