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 AbstractPac4jAuthenticationHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.pac4j.core.profile.creator.ProfileCreator |
profileCreator
The pac4j profile creator used for authentication.
|
credentialSelectionPredicate, 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.AuthenticationHandlerExecutionResult |
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)). |
protected static org.pac4j.core.context.WebContext |
getWebContext()
Gets the web context from the current thread-bound object.
|
boolean |
supports(org.apereo.cas.authentication.Credential credential) |
createResult, determinePrincipalIdFrom, storeUserProfileauthenticate, createHandlerResult, createHandlerResultgetCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, setCredentialSelectionPredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@NonNull protected 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.AuthenticationHandlerExecutionResult doAuthentication(org.apereo.cas.authentication.Credential credential)
throws java.security.GeneralSecurityException
doAuthentication in class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandlerjava.security.GeneralSecurityExceptionprotected static org.pac4j.core.context.WebContext getWebContext()
protected abstract C convertToPac4jCredentials(I casCredential) throws java.security.GeneralSecurityException
casCredential - the CAS credentialjava.security.GeneralSecurityException - On authentication failure.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 credential