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.
log| Constructor and Description |
|---|
RejectUsersAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials) |
void |
setUsers(List<String> users)
Set the Collection of usernames which we will fail to authenticate.
|
doAuthentication, getPasswordEncoder, getPrincipalNameTransformer, setClassToSupport, setPasswordEncoder, setPrincipalNameTransformer, setSupportSubClasses, supportsauthenticate, getName, postAuthenticate, preAuthenticate, setNameprotected final boolean authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials) throws AuthenticationException
authenticateUsernamePasswordInternal in class AbstractUsernamePasswordAuthenticationHandlerAuthenticationExceptionCopyright © 2004-2012 Jasig. All Rights Reserved.