public class AmbariKerberosAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean
AuthenticationProvider
implementation used to authenticate users using a Kerberos ticket.
In order for this provider to be usable, Kerberos authentication must be enabled. This may be done
using the ambari-server setup-kerberos
CLI.
This implementation supports Trusted Proxy authentication.
Constructor and Description |
---|
AmbariKerberosAuthenticationProvider(AmbariAuthToLocalUserDetailsService authToLocalUserDetailsService,
AmbariProxiedUserDetailsService proxiedUserDetailsService,
org.springframework.security.kerberos.authentication.KerberosTicketValidator ticketValidator) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
void |
setAuthToLocalUserDetailsService(AmbariAuthToLocalUserDetailsService authToLocalUserDetailsService) |
void |
setProxiedUserDetailsService(AmbariProxiedUserDetailsService proxiedUserDetailsService) |
void |
setTicketValidator(org.springframework.security.kerberos.authentication.KerberosTicketValidator ticketValidator) |
boolean |
supports(Class<? extends Object> auth) |
@Inject public AmbariKerberosAuthenticationProvider(AmbariAuthToLocalUserDetailsService authToLocalUserDetailsService, AmbariProxiedUserDetailsService proxiedUserDetailsService, org.springframework.security.kerberos.authentication.KerberosTicketValidator ticketValidator)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
authenticate
in interface org.springframework.security.authentication.AuthenticationProvider
org.springframework.security.core.AuthenticationException
public boolean supports(Class<? extends Object> auth)
supports
in interface org.springframework.security.authentication.AuthenticationProvider
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setAuthToLocalUserDetailsService(AmbariAuthToLocalUserDetailsService authToLocalUserDetailsService)
public void setProxiedUserDetailsService(AmbariProxiedUserDetailsService proxiedUserDetailsService)
public void setTicketValidator(org.springframework.security.kerberos.authentication.KerberosTicketValidator ticketValidator)
Copyright © 2022 Apache Software Foundation. All rights reserved.