public abstract class AbstractPac4jAuthenticationHandler
extends org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler
credentialSelectionPredicate, principalFactory, servicesManager| Constructor and Description |
|---|
AbstractPac4jAuthenticationHandler(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 org.apereo.cas.authentication.AuthenticationHandlerExecutionResult |
createResult(org.apereo.cas.authentication.principal.ClientCredential credentials,
org.pac4j.core.profile.UserProfile profile,
org.pac4j.core.client.BaseClient client)
Build the handler result.
|
protected java.lang.String |
determinePrincipalIdFrom(org.pac4j.core.profile.UserProfile profile,
org.pac4j.core.client.BaseClient client)
Determine principal id from profile.
|
protected void |
storeUserProfile(org.pac4j.core.context.WebContext webContext,
org.pac4j.core.profile.CommonProfile profile)
Store user profile.
|
authenticate, createHandlerResult, createHandlerResult, doAuthenticationgetCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, setCredentialSelectionPredicateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic AbstractPac4jAuthenticationHandler(java.lang.String name,
org.apereo.cas.services.ServicesManager servicesManager,
org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
java.lang.Integer order)
protected org.apereo.cas.authentication.AuthenticationHandlerExecutionResult createResult(org.apereo.cas.authentication.principal.ClientCredential credentials,
org.pac4j.core.profile.UserProfile profile,
org.pac4j.core.client.BaseClient client)
throws java.security.GeneralSecurityException
credentials - the provided credentialsprofile - the retrieved user profileclient - the clientjava.security.GeneralSecurityException - On authentication failure.protected java.lang.String determinePrincipalIdFrom(org.pac4j.core.profile.UserProfile profile,
org.pac4j.core.client.BaseClient client)
profile - the profileclient - the clientprotected void storeUserProfile(org.pac4j.core.context.WebContext webContext,
org.pac4j.core.profile.CommonProfile profile)
webContext - the web contextprofile - the profile