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.
Loading...
Related Quiz
- How can you optimize database connectivity in Spring Boot for high-concurrency scenarios?
- How can you implement Token Enhancement to include additional information in the OAuth2 access token?
- In Spring Boot, to apply validation constraints on a field, the _____ annotation is used along with specific constraint annotations.
- The ordering of Auto Configurations can be controlled using the @_____ annotation or property.
- In a Spring Boot application, the _____ annotation can be used to enable OAuth2 Authorization Server features.