Class KerberosAuthenticator
java.lang.Object
org.pac4j.kerberos.credentials.authenticator.KerberosAuthenticator
- All Implemented Interfaces:
org.pac4j.core.credentials.authenticator.Authenticator
public class KerberosAuthenticator
extends Object
implements org.pac4j.core.credentials.authenticator.Authenticator
Authenticator for Kerberos. It creates the user profile and stores it in the credentials
for the
AuthenticatorProfileCreator.- Since:
- 2.1.0
- Author:
- Garry Boyce
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.Loggerprotected KerberosTicketValidatorFields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE, NEVER_VALIDATE -
Constructor Summary
ConstructorsConstructorDescriptionKerberosAuthenticator(KerberosTicketValidator ticketValidator) Initializes the authenticator that will validate Kerberos tickets. -
Method Summary
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
ticketValidator
-
-
Constructor Details
-
KerberosAuthenticator
Initializes the authenticator that will validate Kerberos tickets.- Parameters:
ticketValidator- The ticket validator used to validate the Kerberos ticket.- Since:
- 2.1.0
-
-
Method Details
-
validate
public Optional<org.pac4j.core.credentials.Credentials> validate(org.pac4j.core.context.CallContext ctx, org.pac4j.core.credentials.Credentials cred) - Specified by:
validatein interfaceorg.pac4j.core.credentials.authenticator.Authenticator
-