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.
Loading...
Related Quiz
- How can groups be used in Bean Validation to perform partial validation in Spring Boot?
- Imagine you are maintaining a large Spring Boot application with extensive custom auto-configurations. How would you manage and optimize these auto-configurations to avoid issues with application startup and runtime performance?
- Which annotation is used in Spring Security to secure methods based on role-based conditions?
- How does WebFlux differ from the traditional Spring MVC framework in handling HTTP requests?
- To perform unit testing on the web layer of a Spring Boot application without loading the complete context, use the _____ annotation.