public class TokenAuthenticationHandler
extends org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractTokenWrapperAuthenticationHandler
TokenAuthenticationHandler that authenticates instances of TokenCredential.
There is no need for a separate PrincipalResolver component
as this handler will auto-populate the principal attributes itself.profileCreatorcredentialSelectionPredicate, principalFactory, servicesManager| Constructor and Description |
|---|
TokenAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer) |
| Modifier and Type | Method and Description |
|---|---|
protected org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.TokenCredentials> |
getAuthenticator(org.apereo.cas.authentication.Credential credential) |
protected java.lang.String |
getRegisteredServiceJwtProperty(org.apereo.cas.services.RegisteredService service,
org.apereo.cas.services.RegisteredServiceProperty.RegisteredServiceProperties propName)
Gets registered service jwt secret.
|
org.apereo.cas.authentication.HandlerResult |
postAuthenticate(org.apereo.cas.authentication.Credential credential,
org.apereo.cas.authentication.HandlerResult result) |
convertToPac4jCredentials, getCasCredentialsType, getPrincipalNameTransformerdoAuthentication, getProfileCreator, getWebContext, setProfileCreator, supportscreateResult, setTypedIdUsedauthenticate, createHandlerResultgetName, getOrder, setCredentialSelectionPredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic TokenAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
org.apereo.cas.authentication.handler.PrincipalNameTransformer principalNameTransformer)
public org.apereo.cas.authentication.HandlerResult postAuthenticate(org.apereo.cas.authentication.Credential credential,
org.apereo.cas.authentication.HandlerResult result)
protected org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.TokenCredentials> getAuthenticator(org.apereo.cas.authentication.Credential credential)
getAuthenticator in class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler<org.apereo.cas.authentication.BasicIdentifiableCredential,org.pac4j.core.credentials.TokenCredentials>protected java.lang.String getRegisteredServiceJwtProperty(org.apereo.cas.services.RegisteredService service,
org.apereo.cas.services.RegisteredServiceProperty.RegisteredServiceProperties propName)
service - the servicepropName - the prop name