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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanTells whether this is not anonymous account or anonymous login is allowed by settinglogin.anonymous.always.disabledconfiguration parameter tofalse.loadUserByUsername(String username) Locates the user based on the usernamevoidsetRolePrefix(String rolePrefix)
-
Constructor Details
-
CoreUserDetailsService
public CoreUserDetailsService()
-
-
Method Details
-
loadUserByUsername
Locates the user based on the username(see 'activateCatalogVersions' in the corresponding spring configuration)
- Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Parameters:
username- the username presented to theAuthenticationProvider- 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
Tells whether this is not anonymous account or anonymous login is allowed by settinglogin.anonymous.always.disabledconfiguration parameter tofalse. -
setRolePrefix
-