Class CasAuthenticator
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.profile.definition.ProfileDefinitionAware
org.pac4j.cas.credentials.authenticator.CasAuthenticator
- All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator
public class CasAuthenticator
extends org.pac4j.core.profile.definition.ProfileDefinitionAware
implements org.pac4j.core.credentials.authenticator.Authenticator
CAS authenticator which validates the service ticket.
- Since:
- 1.9.2
- Author:
- Jerome Leleu
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected org.pac4j.core.http.callback.CallbackUrlResolver
protected String
protected CasConfiguration
protected org.pac4j.core.http.url.UrlResolver
Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE
-
Constructor Summary
ConstructorDescriptionCasAuthenticator
(CasConfiguration configuration, String clientName, org.pac4j.core.http.url.UrlResolver urlResolver, org.pac4j.core.http.callback.CallbackUrlResolver callbackUrlResolver, String callbackUrl) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
internalInit
(boolean forceReinit) void
validate
(org.pac4j.core.credentials.Credentials cred, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinitionAware
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Field Details
-
configuration
-
clientName
-
urlResolver
protected org.pac4j.core.http.url.UrlResolver urlResolver -
callbackUrlResolver
protected org.pac4j.core.http.callback.CallbackUrlResolver callbackUrlResolver -
callbackUrl
-
-
Constructor Details
-
CasAuthenticator
public CasAuthenticator(CasConfiguration configuration, String clientName, org.pac4j.core.http.url.UrlResolver urlResolver, org.pac4j.core.http.callback.CallbackUrlResolver callbackUrlResolver, String callbackUrl)
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) - Specified by:
internalInit
in classorg.pac4j.core.util.InitializableObject
-
validate
public void validate(org.pac4j.core.credentials.Credentials cred, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) - Specified by:
validate
in interfaceorg.pac4j.core.credentials.authenticator.Authenticator
-