Class CoreUserDetailsService

java.lang.Object
de.hybris.platform.spring.security.CoreUserDetailsService
All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
Direct Known Subclasses:
BackofficeUserDetailsService, CockpitUserDetailsService, DefaultCockpitUserDetailsService, OriginalUidUserDetailsService

public class CoreUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
platform specific implementation for providing user data access
  • Constructor Details

    • CoreUserDetailsService

      public CoreUserDetailsService()
  • Method Details

    • loadUserByUsername

      public CoreUserDetails loadUserByUsername(String username)
      Locates the user based on the username

      (see 'activateCatalogVersions' in the corresponding spring configuration)

      Specified by:
      loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
      Parameters:
      username - the username presented to the AuthenticationProvider
      Returns:
      a fully populated user record (could be null)
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException - if the user could not be found or the user has no GrantedAuthority
    • isNotAnonymousOrAnonymousLoginIsAllowed

      protected boolean isNotAnonymousOrAnonymousLoginIsAllowed(User user)
      Tells whether this is not anonymous account or anonymous login is allowed by setting login.anonymous.always.disabled configuration parameter to false.
    • setRolePrefix

      public void setRolePrefix(String rolePrefix)