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 java.lang.Object implements org.springframework.security.core.userdetails.UserDetailsServiceplatform specific implementation for providing user data access
-
-
Constructor Summary
Constructors Constructor Description CoreUserDetailsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisNotAnonymousOrAnonymousLoginIsAllowed(User user)Tells whether this is not anonymous account or anonymous login is allowed by settinglogin.anonymous.always.disabledconfiguration parameter tofalse.CoreUserDetailsloadUserByUsername(java.lang.String username)Locates the user based on the usernamevoidsetRolePrefix(java.lang.String rolePrefix)
-
-
-
Method Detail
-
loadUserByUsername
public CoreUserDetails loadUserByUsername(java.lang.String username)
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
protected boolean isNotAnonymousOrAnonymousLoginIsAllowed(User user)
Tells whether this is not anonymous account or anonymous login is allowed by settinglogin.anonymous.always.disabledconfiguration parameter tofalse.
-
setRolePrefix
public void setRolePrefix(java.lang.String rolePrefix)
-
-