Class AbstractAcceleratorAuthenticationProvider
- java.lang.Object
-
- de.hybris.platform.spring.security.CoreAuthenticationProvider
-
- de.hybris.platform.acceleratorstorefrontcommons.security.AbstractAcceleratorAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.MessageSourceAware
,org.springframework.security.authentication.AuthenticationProvider
- Direct Known Subclasses:
AcceleratorAuthenticationProvider
,B2BAcceleratorAuthenticationProvider
public abstract class AbstractAcceleratorAuthenticationProvider extends CoreAuthenticationProvider
Derived authentication provider supporting additional authentication checks. SeeRejectUserPreAuthenticationChecks
.- prevent login without password for users created via CSCockpit
- prevent login as user in group admingroup
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.spring.security.CoreAuthenticationProvider
CoreAuthenticationProvider.CoreAuthenticationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BAD_CREDENTIALS
static java.lang.String
CORE_AUTHENTICATION_PROVIDER_BAD_CREDENTIALS
-
Fields inherited from class de.hybris.platform.spring.security.CoreAuthenticationProvider
messages
-
-
Constructor Summary
Constructors Constructor Description AbstractAcceleratorAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails details, org.springframework.security.authentication.AbstractAuthenticationToken authentication)
org.springframework.security.core.Authentication
authenticate(org.springframework.security.core.Authentication authentication)
protected BruteForceAttackCounter
getBruteForceAttackCounter()
protected ModelService
getModelService()
protected UserService
getUserService()
void
setBruteForceAttackCounter(BruteForceAttackCounter bruteForceAttackCounter)
void
setModelService(ModelService modelService)
void
setUserService(UserService userService)
-
Methods inherited from class de.hybris.platform.spring.security.CoreAuthenticationProvider
afterPropertiesSet, createSuccessAuthentication, getPreAuthenticationChecks, getUserDetailsService, retrieveUser, setMessageSource, setPreAuthenticationChecks, setUserDetailsService, supports
-
-
-
-
Field Detail
-
CORE_AUTHENTICATION_PROVIDER_BAD_CREDENTIALS
public static final java.lang.String CORE_AUTHENTICATION_PROVIDER_BAD_CREDENTIALS
- See Also:
- Constant Field Values
-
BAD_CREDENTIALS
public static final java.lang.String BAD_CREDENTIALS
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
- Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Overrides:
authenticate
in classCoreAuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails details, org.springframework.security.authentication.AbstractAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
- Overrides:
additionalAuthenticationChecks
in classCoreAuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
- See Also:
CoreAuthenticationProvider.additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails, org.springframework.security.authentication.AbstractAuthenticationToken)
-
getBruteForceAttackCounter
protected BruteForceAttackCounter getBruteForceAttackCounter()
-
setBruteForceAttackCounter
public void setBruteForceAttackCounter(BruteForceAttackCounter bruteForceAttackCounter)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-