Class RejectUserPreAuthenticationChecks
- java.lang.Object
-
- org.springframework.security.authentication.AccountStatusUserDetailsChecker
-
- de.hybris.platform.spring.security.RejectUserPreAuthenticationChecks
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware,org.springframework.security.core.userdetails.UserDetailsChecker
public class RejectUserPreAuthenticationChecks extends org.springframework.security.authentication.AccountStatusUserDetailsCheckerUsed byCoreAuthenticationProvider.The setup below rejects login attempts of user 'foo' (UID based restriction) and of customers in general (type based restriction).
See: /ext/cockpit/resources/cockpit/cockpit-spring-security.xml
foo Customer
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.support.MessageSourceAccessormessages
-
Constructor Summary
Constructors Constructor Description RejectUserPreAuthenticationChecks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(org.springframework.security.core.userdetails.UserDetails userDetails)protected voidcheckForAllowedGroups(User user)protected voidcheckUserType(User user)protected ComposedTypegetComposedType(java.lang.String code)voidsetAllowedUserGroups(java.util.Collection<java.lang.String> allowedUserGroups)voidsetAllowedUserTypes(java.util.Collection<java.lang.String> allowedUserTypes)
-
-
-
Method Detail
-
setAllowedUserTypes
public void setAllowedUserTypes(java.util.Collection<java.lang.String> allowedUserTypes)
-
setAllowedUserGroups
public void setAllowedUserGroups(java.util.Collection<java.lang.String> allowedUserGroups)
-
check
public void check(org.springframework.security.core.userdetails.UserDetails userDetails)
- Specified by:
checkin interfaceorg.springframework.security.core.userdetails.UserDetailsChecker- Overrides:
checkin classorg.springframework.security.authentication.AccountStatusUserDetailsChecker
-
checkForAllowedGroups
protected void checkForAllowedGroups(User user)
-
checkUserType
protected void checkUserType(User user)
-
getComposedType
protected ComposedType getComposedType(java.lang.String code)
-
-