public abstract class AbstractPreAndPostProcessingAuthenticationHandler extends Object implements NamedAuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log
Instance of logging for subclasses.
|
| Constructor and Description |
|---|
AbstractPreAndPostProcessingAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(Credentials credentials)
Method to determine if the credentials supplied are valid.
|
protected abstract boolean |
doAuthentication(Credentials credentials) |
String |
getName() |
protected boolean |
postAuthenticate(Credentials credentials,
boolean authenticated)
Method to execute after authentication occurs.
|
protected boolean |
preAuthenticate(Credentials credentials)
Method to execute before authentication occurs.
|
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic AbstractPreAndPostProcessingAuthenticationHandler()
protected boolean preAuthenticate(Credentials credentials)
credentials - the Credentials suppliedprotected boolean postAuthenticate(Credentials credentials, boolean authenticated)
credentials - the supplied credentialsauthenticated - the result of the authentication attempt.public final void setName(String name)
public final String getName()
getName in interface NamedAuthenticationHandlerpublic final boolean authenticate(Credentials credentials) throws AuthenticationException
AuthenticationHandlerauthenticate in interface AuthenticationHandlercredentials - The credentials to validate.AuthenticationException - An AuthenticationException can contain
details about why a particular authentication request failed.protected abstract boolean doAuthentication(Credentials credentials) throws AuthenticationException
AuthenticationExceptionCopyright © 2004-2012 Jasig. All Rights Reserved.