public abstract class AbstractPreAndPostProcessingAuthenticationHandler extends AbstractAuthenticationHandler implements org.apereo.cas.authentication.PrePostAuthenticationHandler
principalFactory, servicesManager| Constructor and Description |
|---|
AbstractPreAndPostProcessingAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order) |
| Modifier and Type | Method and Description |
|---|---|
org.apereo.cas.authentication.HandlerResult |
authenticate(org.apereo.cas.authentication.Credential credential) |
protected org.apereo.cas.authentication.HandlerResult |
createHandlerResult(org.apereo.cas.authentication.Credential credential,
org.apereo.cas.authentication.principal.Principal principal,
java.util.List<org.apereo.cas.authentication.MessageDescriptor> warnings)
Helper method to construct a handler result
on successful authentication events.
|
protected abstract org.apereo.cas.authentication.HandlerResult |
doAuthentication(org.apereo.cas.authentication.Credential credential)
Performs the details of authentication and returns an authentication handler result on success.
|
getName, getOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostAuthenticate, preAuthenticatepublic AbstractPreAndPostProcessingAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order)
public org.apereo.cas.authentication.HandlerResult authenticate(org.apereo.cas.authentication.Credential credential)
throws java.security.GeneralSecurityException,
org.apereo.cas.authentication.PreventedException
authenticate in interface org.apereo.cas.authentication.AuthenticationHandlerjava.security.GeneralSecurityExceptionorg.apereo.cas.authentication.PreventedExceptionprotected abstract org.apereo.cas.authentication.HandlerResult doAuthentication(org.apereo.cas.authentication.Credential credential)
throws java.security.GeneralSecurityException,
org.apereo.cas.authentication.PreventedException
credential - Credential to authenticate.java.security.GeneralSecurityException - On authentication failure that is thrown out to the caller of
authenticate(Credential).org.apereo.cas.authentication.PreventedException - On the indeterminate case when authentication is prevented.protected org.apereo.cas.authentication.HandlerResult createHandlerResult(org.apereo.cas.authentication.Credential credential,
org.apereo.cas.authentication.principal.Principal principal,
java.util.List<org.apereo.cas.authentication.MessageDescriptor> warnings)
credential - the credential on which the authentication was successfully performed.
Note that this credential instance may be different from what was originally provided
as transformation of the username may have occurred, if one is in fact defined.principal - the resolved principalwarnings - the warnings