public class RejectUsersAuthenticationHandler extends AbstractUsernamePasswordAuthenticationHandler
Note that RejectUsersAuthenticationHandler throws an exception when the user is found in the map. This is done to indicate that this is an extreme case and any AuthenticationManager checking the RejectUsersAuthenticationHandler should not continue checking other Authentication Handlers on the failure of RejectUsersAuthenticationHandler to authenticate someone.
logger| Constructor and Description |
|---|
RejectUsersAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected HandlerResult |
authenticateUsernamePasswordInternal(UsernamePasswordCredential credential) |
void |
setUsers(List<String> users)
Set the Collection of usernames which we will fail to authenticate.
|
createHandlerResult, doAuthentication, getPasswordEncoder, getPasswordPolicyConfiguration, getPrincipalNameTransformer, setPasswordEncoder, setPasswordPolicyConfiguration, setPrincipalNameTransformer, supportsauthenticate, postAuthenticate, preAuthenticategetName, setNameprotected final HandlerResult authenticateUsernamePasswordInternal(UsernamePasswordCredential credential) throws GeneralSecurityException, PreventedException
authenticateUsernamePasswordInternal in class AbstractUsernamePasswordAuthenticationHandlerGeneralSecurityExceptionPreventedExceptionCopyright © 2004-2015 Apereo. All Rights Reserved.