Package africa.absa.inception.security
Class UserDetailsService
- java.lang.Object
-
- africa.absa.inception.security.UserDetailsService
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class UserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
The UserDetailsService class provides the User Details Service implementation that provides the details for users.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description UserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String username)Locates the user based on the username.
-
-
-
Method Detail
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
Locates the user based on the username. In the actual implementation, the search may possibly be case sensitive, or case insensitive depending on how the implementation instance is configured. In this case, the UserDetails object that comes back may have a username that is of a different case than what was actually requested.- Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Parameters:
username- the username for the user whose data is required.- Returns:
- a fully populated user record (never null)
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
-