public class RejectUserPreAuthenticationChecks
extends AccountStatusUserDetailsChecker
CoreAuthenticationProvider.
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
| Modifier and Type | Field and Description |
|---|---|
protected MessageSourceAccessor |
messages |
| Constructor and Description |
|---|
RejectUserPreAuthenticationChecks() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(UserDetails userDetails) |
protected void |
checkForAllowedGroups(User user) |
protected void |
checkUserType(User user) |
protected ComposedType |
getComposedType(String code) |
void |
setAllowedUserGroups(Collection<String> allowedUserGroups) |
void |
setAllowedUserTypes(Collection<String> allowedUserTypes) |
public void setAllowedUserTypes(Collection<String> allowedUserTypes)
public void setAllowedUserGroups(Collection<String> allowedUserGroups)
public void check(UserDetails userDetails)
protected void checkForAllowedGroups(User user)
protected void checkUserType(User user)
protected ComposedType getComposedType(String code)
Copyright © 2017 SAP SE. All Rights Reserved.