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
public abstract class AbstractAcceleratorAuthenticationProvider extends de.hybris.platform.spring.security.CoreAuthenticationProviderDerived authentication provider supporting additional authentication checks. SeeRejectUserPreAuthenticationChecks.- prevent login without password for users created via CSCockpit
- prevent login as user in group admingroup
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBAD_CREDENTIALSstatic java.lang.StringCORE_AUTHENTICATION_PROVIDER_BAD_CREDENTIALS
-
Constructor Summary
Constructors Constructor Description AbstractAcceleratorAuthenticationProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadditionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails details, org.springframework.security.authentication.AbstractAuthenticationToken authentication)org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)protected BruteForceAttackCountergetBruteForceAttackCounter()protected de.hybris.platform.servicelayer.model.ModelServicegetModelService()protected de.hybris.platform.servicelayer.user.UserServicegetUserService()voidsetBruteForceAttackCounter(BruteForceAttackCounter bruteForceAttackCounter)voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
-
-
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:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Overrides:
authenticatein classde.hybris.platform.spring.security.CoreAuthenticationProvider- 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:
additionalAuthenticationChecksin classde.hybris.platform.spring.security.CoreAuthenticationProvider- 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 de.hybris.platform.servicelayer.user.UserService getUserService()
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
-