Class InternalTokenAuthenticator
java.lang.Object
de.xima.fc.security.pac4j.authentication.InternalTokenAuthenticator
- All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator
public class InternalTokenAuthenticator
extends Object
implements org.pac4j.core.credentials.authenticator.Authenticator
Authenticator that validates the token and checks if the token is cached.
-
Field Summary
Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(org.pac4j.core.credentials.Credentials credentials, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) static InternalTokenAuthenticatorwithAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator delegate) Creates a new instance of theInternalTokenAuthenticatorwith the given authenticator.
-
Method Details
-
withAuthenticator
public static InternalTokenAuthenticator withAuthenticator(org.pac4j.core.credentials.authenticator.Authenticator delegate) Creates a new instance of theInternalTokenAuthenticatorwith the given authenticator.- Parameters:
delegate- the authenticator to use- Returns:
- the new instance
-
validate
public void validate(org.pac4j.core.credentials.Credentials credentials, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) - Specified by:
validatein interfaceorg.pac4j.core.credentials.authenticator.Authenticator
-