Class RequiredJWTIssuerAuthenticator
java.lang.Object
de.xima.fc.security.pac4j.authentication.RequiredJWTIssuerAuthenticator
- All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator
public class RequiredJWTIssuerAuthenticator
extends Object
implements org.pac4j.core.credentials.authenticator.Authenticator
Default JWT authenticator that requires a specific
issuer.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE -
Method Summary
Modifier and TypeMethodDescriptionforClientName(String clientName, org.pac4j.core.credentials.authenticator.Authenticator delegate) Creates a new instance of theRequiredJWTIssuerAuthenticatorwith the given client name and authenticator.voidvalidate(org.pac4j.core.credentials.Credentials credentials, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)
-
Method Details
-
forClientName
public static RequiredJWTIssuerAuthenticator forClientName(String clientName, org.pac4j.core.credentials.authenticator.Authenticator delegate) Creates a new instance of theRequiredJWTIssuerAuthenticatorwith the given client name and authenticator.- Parameters:
clientName- the client name to requiredelegate- 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
-