Class 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.authentication.AbstractAuthenticationHandler

        principalFactory
      • Fields inherited from interface org.apereo.cas.authentication.AuthenticationHandler

        SUCCESSFUL_AUTHENTICATION_HANDLERS
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected 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, org.pac4j.core.context.session.SessionStore sessionStore)  
    • Constructor Detail

      • AbstractTokenWrapperAuthenticationHandler

        protected 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,
                                                            org.pac4j.core.context.session.SessionStore sessionStore)
    • Method Detail

      • convertToPac4jCredentials

        protected org.pac4j.core.credentials.TokenCredentials convertToPac4jCredentials​(org.apereo.cas.authentication.credential.BasicIdentifiableCredential casCredential)
                                                                                 throws java.security.GeneralSecurityException
        Description copied from class: AbstractWrapperAuthenticationHandler
        Convert a CAS credential into a pac4j credentials to play the authentication.
        Specified by:
        convertToPac4jCredentials in class AbstractWrapperAuthenticationHandler<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)