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 Details

    • UserDetailsService

      public UserDetailsService()
  • Method Details

    • 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:
      loadUserByUsername in interface org.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