In Spring Security, which interface is primarily used to load user-specific data?

  • Authentication Manager
  • Authentication Provider
  • Security Context
  • UserDetailsService
In Spring Security, the UserDetailsService interface is primarily used to load user-specific data. It is crucial for retrieving user details, including username, password, and authorities, which are necessary for authentication and authorization. The Authentication Manager is responsible for managing authentication requests, and the Authentication Provider performs the actual authentication based on the loaded user data. The Security Context stores the security-related information but is not primarily used for loading user data.
Add your answer
Loading...

Leave a comment

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