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
profileCreator
-
Fields inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
credentialSelectionPredicate, principalFactory, servicesManager
-
-
Constructor Summary
Constructors Constructor Description AbstractTokenWrapperAuthenticationHandler(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, java.lang.Integer order, org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.pac4j.core.credentials.TokenCredentialsconvertToPac4jCredentials(org.apereo.cas.authentication.credential.BasicIdentifiableCredential casCredential)Convert a CAS credential into a pac4j credentials to play the authentication.protected java.lang.Class<org.apereo.cas.authentication.credential.BasicIdentifiableCredential>getCasCredentialsType()Return the CAS credential supported by this handler (to be converted in a pac4j credentials byAbstractWrapperAuthenticationHandler.convertToPac4jCredentials(Credential)).booleansupports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)-
Methods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler
doAuthentication, getAuthenticator, getWebContext, supports
-
Methods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractPac4jAuthenticationHandler
createResult, determinePrincipalIdFrom, finalizeAuthenticationHandlerResult, preFinalizeAuthenticationHandlerResult, storeUserProfile
-
Methods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
authenticate, createHandlerResult, createHandlerResult
-
Methods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, setCredentialSelectionPredicate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AbstractTokenWrapperAuthenticationHandler
public AbstractTokenWrapperAuthenticationHandler(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, java.lang.Integer order, org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer)
-
-
Method Detail
-
convertToPac4jCredentials
protected org.pac4j.core.credentials.TokenCredentials convertToPac4jCredentials(org.apereo.cas.authentication.credential.BasicIdentifiableCredential casCredential) throws java.security.GeneralSecurityExceptionDescription copied from class:AbstractWrapperAuthenticationHandlerConvert a CAS credential into a pac4j credentials to play the authentication.- Specified by:
convertToPac4jCredentialsin classAbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.credential.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials>- Parameters:
casCredential- the CAS credential- Returns:
- the pac4j credentials
- Throws:
java.security.GeneralSecurityException- On authentication failure.
-
supports
public boolean supports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)
-
getCasCredentialsType
protected java.lang.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.convertToPac4jCredentials(Credential)).- Specified by:
getCasCredentialsTypein classAbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.credential.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials>- Returns:
- the CAS credential class
-
-