I - the type parameterC - the type parameterpublic abstract class AbstractWrapperAuthenticationHandler<I extends org.apereo.cas.authentication.Credential,C extends org.pac4j.core.credentials.Credentials>
extends org.apereo.cas.authentication.handler.support.AbstractPac4jAuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.pac4j.core.profile.creator.ProfileCreator |
profileCreator
The pac4j profile creator used for authentication.
|
principalFactory, servicesManager| Constructor and Description |
|---|
AbstractWrapperAuthenticationHandler(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 |
|---|---|
protected abstract C |
convertToPac4jCredentials(I casCredential)
Convert a CAS credential into a pac4j credentials to play the authentication.
|
protected org.apereo.cas.authentication.HandlerResult |
doAuthentication(org.apereo.cas.authentication.Credential credential) |
protected abstract org.pac4j.core.credentials.authenticator.Authenticator |
getAuthenticator(org.apereo.cas.authentication.Credential credential)
Gets authenticator.
|
protected abstract java.lang.Class<I> |
getCasCredentialsType()
Return the CAS credential supported by this handler (to be converted in a pac4j credentials
by
convertToPac4jCredentials(Credential)). |
org.pac4j.core.profile.creator.ProfileCreator |
getProfileCreator() |
protected static org.pac4j.core.context.WebContext |
getWebContext()
Gets the web context from the current thread-bound object.
|
void |
setProfileCreator(org.pac4j.core.profile.creator.ProfileCreator profileCreator) |
boolean |
supports(org.apereo.cas.authentication.Credential credential) |
createResult, setTypedIdUsedauthenticate, createHandlerResultgetName, getOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.pac4j.core.profile.creator.ProfileCreator profileCreator
public AbstractWrapperAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order)
public boolean supports(org.apereo.cas.authentication.Credential credential)
protected org.apereo.cas.authentication.HandlerResult doAuthentication(org.apereo.cas.authentication.Credential credential)
throws java.security.GeneralSecurityException,
org.apereo.cas.authentication.PreventedException
doAuthentication in class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandlerjava.security.GeneralSecurityExceptionorg.apereo.cas.authentication.PreventedExceptionprotected static org.pac4j.core.context.WebContext getWebContext()
protected abstract C convertToPac4jCredentials(I casCredential) throws java.security.GeneralSecurityException, org.apereo.cas.authentication.PreventedException
casCredential - the CAS credentialjava.security.GeneralSecurityException - On authentication failure.org.apereo.cas.authentication.PreventedException - On the indeterminate case when authentication is prevented.protected abstract java.lang.Class<I> getCasCredentialsType()
convertToPac4jCredentials(Credential)).protected abstract org.pac4j.core.credentials.authenticator.Authenticator getAuthenticator(org.apereo.cas.authentication.Credential credential)
credential - the credentialpublic org.pac4j.core.profile.creator.ProfileCreator getProfileCreator()
public void setProfileCreator(org.pac4j.core.profile.creator.ProfileCreator profileCreator)