public class KerberosLdapAuthenticationProvider
extends org.springframework.security.kerberos.authentication.KerberosAuthenticationProvider
KerberosServiceLdapAuthenticationProvider,
KerberosServiceAuthenticationProvider,
LdapUserSearch,
LdapAuthoritiesPopulator| Constructor and Description |
|---|
KerberosLdapAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
org.springframework.security.kerberos.authentication.KerberosClient |
getKerberosClient() |
org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator |
getLdapAuthoritiesPopulator() |
org.springframework.security.ldap.search.LdapUserSearch |
getLdapUserSearch() |
boolean |
getTrimRealm() |
void |
setKerberosClient(org.springframework.security.kerberos.authentication.KerberosClient kerberosClient) |
void |
setLdapAuthoritiesPopulator(org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator ldapAuthoritiesPopulator) |
void |
setLdapUserSearch(org.springframework.security.ldap.search.LdapUserSearch ldapUserSearch) |
void |
setTrimRealm(boolean trimRealm) |
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.AuthenticationProviderauthenticate in class org.springframework.security.kerberos.authentication.KerberosAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic void setLdapAuthoritiesPopulator(org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator ldapAuthoritiesPopulator)
ldapAuthoritiesPopulator - The LdapAuthoritiesPopulator to use
for retrieving granted authorities from an LDAP directorypublic org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator getLdapAuthoritiesPopulator()
public void setLdapUserSearch(org.springframework.security.ldap.search.LdapUserSearch ldapUserSearch)
ldapUserSearch - The LdapUserSearch with which to look up
users in an LDAP directorypublic org.springframework.security.ldap.search.LdapUserSearch getLdapUserSearch()
public void setKerberosClient(org.springframework.security.kerberos.authentication.KerberosClient kerberosClient)
setKerberosClient in class org.springframework.security.kerberos.authentication.KerberosAuthenticationProviderpublic org.springframework.security.kerberos.authentication.KerberosClient getKerberosClient()
public void setTrimRealm(boolean trimRealm)
trimRealm - Defaults to true. If set to false, do not trim the
realm portion (e.g. @EXAMPLE.ORG) from the authenticated user principal
name (e.g. user@EXAMPLE.ORG).public boolean getTrimRealm()
Copyright © 2020. All rights reserved.