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.
Add your answer
Loading...

Leave a comment

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