public abstract class AbstractAuthenticationManager extends Object implements AuthenticationManager
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAuthenticationManager.Pair<A,B> |
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log
Log instance for logging events, errors, warnings, etc.
|
AUTHENTICATION_METHOD_ATTRIBUTE| Constructor and Description |
|---|
AbstractAuthenticationManager() |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
authenticate(Credentials credentials)
Method to validate the credentials provided.
|
protected abstract AbstractAuthenticationManager.Pair<AuthenticationHandler,Principal> |
authenticateAndObtainPrincipal(Credentials credentials)
Follows the same rules as the "authenticate" method (i.e.
|
protected void |
logAuthenticationHandlerError(String handlerName,
Credentials credentials,
Exception e)
Logs the exception occurred as an error.
|
void |
setAuthenticationMetaDataPopulators(List<AuthenticationMetaDataPopulator> authenticationMetaDataPopulators) |
protected final org.slf4j.Logger log
public final Authentication authenticate(Credentials credentials) throws AuthenticationException
AuthenticationManagerauthenticate in interface AuthenticationManagercredentials - The credentials provided for authentication.AuthenticationException - if unable to determine validity of
credentials or there is an extenuating circumstance related to
credentials (i.e. Account locked).public final void setAuthenticationMetaDataPopulators(List<AuthenticationMetaDataPopulator> authenticationMetaDataPopulators)
authenticationMetaDataPopulators - the authenticationMetaDataPopulators to set.protected abstract AbstractAuthenticationManager.Pair<AuthenticationHandler,Principal> authenticateAndObtainPrincipal(Credentials credentials) throws AuthenticationException
credentials - the credentials to checkAuthenticationException - if there is an error authenticating.protected void logAuthenticationHandlerError(String handlerName, Credentials credentials, Exception e)
handlerName - The class name of the authentication handler.credentials - Client credentials subject to authentication.e - The exception that has occurred during authentication attempt.Copyright © 2004-2012 Jasig. All Rights Reserved.