@Component public class AmbariKerberosTicketValidator extends Object implements org.springframework.security.kerberos.authentication.KerberosTicketValidator, org.springframework.beans.factory.InitializingBean
KerberosTicketValidator implementation that delegates
to a SunJaasKerberosTicketValidator, if Kerberos authentication is enabled.
If Kerberos authentication is enabled, the following properties are set:
SunJaasKerberosTicketValidator.setServicePrincipal(String) using the Ambari server property from Configuration.KERBEROS_AUTH_SPNEGO_PRINCIPALSunJaasKerberosTicketValidator.setKeyTabLocation(Resource) using the Ambari server property from Configuration.KERBEROS_AUTH_SPNEGO_KEYTAB_FILE| Constructor and Description |
|---|
AmbariKerberosTicketValidator(Configuration configuration)
Creates a new AmbariKerberosTicketValidator
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
setDebug(boolean debug) |
org.springframework.security.kerberos.authentication.KerberosTicketValidation |
validateTicket(byte[] bytes) |
public AmbariKerberosTicketValidator(Configuration configuration)
configuration - the Ambari server configurationpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic org.springframework.security.kerberos.authentication.KerberosTicketValidation validateTicket(byte[] bytes)
throws org.springframework.security.authentication.BadCredentialsException
validateTicket in interface org.springframework.security.kerberos.authentication.KerberosTicketValidatororg.springframework.security.authentication.BadCredentialsExceptionpublic void setDebug(boolean debug)
Copyright © 2022 Apache Software Foundation. All rights reserved.