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.
Loading...
Related Quiz
- In JUnit, which annotation is used to execute a method before each test method in the test class?
- How can you exclude certain auto-configuration classes in Spring Boot to prevent them from being applied?
- In the context of Global Method Security, how can custom permission evaluators be integrated to extend the functionality of method security expressions?
- What is the difference between @RestController and @Controller in Spring Boot?
- In Spring Boot, which annotation is used to denote that a test class should load only specific parts of the application context for Web tests?