In Spring Security, the method loadUserByUsername is defined in the _____ interface.
- UserDetailsService
- AuthenticationProvider
- UserDetails
- Authentication
In Spring Security, the method loadUserByUsername is defined in the UserDetailsService interface. This method is responsible for loading user details (including credentials) based on the username provided during authentication. The other options, such as AuthenticationProvider, UserDetails, and Authentication, are not interfaces that define this specific method.
Loading...
Related Quiz
- In Spring Boot, the _____ annotation can be used to define which beans should be registered in the context based on a conditional check.
- To configure the cache storage type, like in-memory or external, in Spring Boot, the _____ property is used.
- You are migrating a large-scale Spring MVC application to WebFlux. What strategies would you employ to ensure a smooth transition and maintain application stability?
- The Spring Cloud component _____ provides a simple, scalable, and flexible way to route API requests to microservices.
- Which annotation is used to bind the value of a method parameter to a named HTTP header in a Spring Boot application?