public class KerberosAuthenticator extends InitializableWebObject implements Authenticator<KerberosCredentials>
AuthenticatorProfileCreator
.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
KerberosAuthenticator() |
KerberosAuthenticator(KerberosTicketValidator ticketValidator)
Initializes the authenticator that will validate Kerberos tickets.
|
Modifier and Type | Method and Description |
---|---|
KerberosTicketValidator |
getTicketValidator() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
void |
setTicketValidator(KerberosTicketValidator ticketValidator) |
void |
validate(KerberosCredentials credentials,
WebContext context)
Validate the credentials.
|
init, reinit
public KerberosAuthenticator()
public KerberosAuthenticator(KerberosTicketValidator ticketValidator)
ticketValidator
- The ticket validator used to validate the Kerberos ticket.public void validate(KerberosCredentials credentials, WebContext context) throws CredentialsException
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<KerberosCredentials>
credentials
- the given credentialscontext
- the web contextCredentialsException
- the credentials are invalidprotected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic KerberosTicketValidator getTicketValidator()
public void setTicketValidator(KerberosTicketValidator ticketValidator)
Copyright © 2018. All rights reserved.