Class AbstractTokenWrapperAuthenticationHandler
java.lang.Object
org.apereo.cas.authentication.AbstractAuthenticationHandler
org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractPac4jAuthenticationHandler
org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.credential.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials>
org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractTokenWrapperAuthenticationHandler
- All Implemented Interfaces:
org.apereo.cas.authentication.AuthenticationHandler,org.apereo.cas.authentication.PrePostAuthenticationHandler,org.springframework.core.Ordered
public abstract class AbstractTokenWrapperAuthenticationHandler
extends AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.credential.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials>
Pac4j authentication handler which works on a CAS identifiable credential
and uses a pac4j authenticator and profile creator to play authentication.
- Since:
- 4.2.0
-
Field Summary
Fields inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler
profileCreatorFields inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractPac4jAuthenticationHandler
sessionStoreFields inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
principalFactoryFields inherited from interface org.apereo.cas.authentication.AuthenticationHandler
SUCCESSFUL_AUTHENTICATION_HANDLERSFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTokenWrapperAuthenticationHandler(String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, Integer order, org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer, org.pac4j.core.context.session.SessionStore sessionStore) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.pac4j.core.credentials.TokenCredentialsconvertToCredentials(org.apereo.cas.authentication.credential.BasicIdentifiableCredential casCredential) Convert a CAS credential into a pac4j credentials to play the authentication.protected Class<org.apereo.cas.authentication.credential.BasicIdentifiableCredential>Return the CAS credential supported by this handler (to be converted in a pac4j credentials byAbstractWrapperAuthenticationHandler.convertToCredentials(Credential)).booleanMethods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler
doAuthentication, getAuthenticator, getWebContext, supportsMethods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractPac4jAuthenticationHandler
createResult, determinePrincipalIdFrom, finalizeAuthenticationHandlerResult, finalizeAuthenticationPrincipal, postFinalizeAuthenticationHandlerResult, preFinalizeAuthenticationHandlerResult, storeUserProfileMethods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
authenticate, createHandlerResult, createHandlerResultMethods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
canEqual, equals, getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, getState, hashCode, setCredentialSelectionPredicate, setStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.AuthenticationHandler
getName, getOrder, getStateMethods inherited from interface org.apereo.cas.authentication.PrePostAuthenticationHandler
postAuthenticate, preAuthenticate
-
Constructor Details
-
AbstractTokenWrapperAuthenticationHandler
protected AbstractTokenWrapperAuthenticationHandler(String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, Integer order, org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer, org.pac4j.core.context.session.SessionStore sessionStore)
-
-
Method Details
-
convertToCredentials
protected org.pac4j.core.credentials.TokenCredentials convertToCredentials(org.apereo.cas.authentication.credential.BasicIdentifiableCredential casCredential) throws GeneralSecurityException Description copied from class:AbstractWrapperAuthenticationHandlerConvert a CAS credential into a pac4j credentials to play the authentication.- Specified by:
convertToCredentialsin classAbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.credential.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials> - Parameters:
casCredential- the CAS credential- Returns:
- the pac4j credentials
- Throws:
GeneralSecurityException- On authentication failure.
-
supports
-
getCasCredentialsType
protected Class<org.apereo.cas.authentication.credential.BasicIdentifiableCredential> getCasCredentialsType()Description copied from class:AbstractWrapperAuthenticationHandlerReturn the CAS credential supported by this handler (to be converted in a pac4j credentials byAbstractWrapperAuthenticationHandler.convertToCredentials(Credential)).- Specified by:
getCasCredentialsTypein classAbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.credential.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials> - Returns:
- the CAS credential class
-