public class LdapAuthenticatorImpl extends Object implements org.springframework.security.ldap.authentication.LdapAuthenticator
| Constructor and Description |
|---|
LdapAuthenticatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ldap.core.DirContextOperations |
authenticate(org.springframework.security.core.Authentication authentication) |
org.springframework.security.ldap.DefaultSpringSecurityContextSource |
getContextFactory()
Get the context factory
|
String |
getPrincipalPrefix()
Get the principal prefix
|
static InitialLdapContext |
recreateLdapContext(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator,
LdapAuthenticationToken auth)
Since the InitialLdapContext that's stored as a property of an LdapAuthenticationToken is transient (because it
isn't Serializable), we need some way to recreate the InitialLdapContext if it's null (e.g., if the
LdapAuthenticationToken has been serialized and deserialized).
|
void |
setContextFactory(org.springframework.security.ldap.DefaultSpringSecurityContextSource contextFactory)
Set the context factory to use for generating a new LDAP context.
|
void |
setPrincipalPrefix(String principalPrefix)
Set the string to be prepended to all principal names prior to attempting authentication against the LDAP server.
|
public org.springframework.ldap.core.DirContextOperations authenticate(org.springframework.security.core.Authentication authentication)
authenticate in interface org.springframework.security.ldap.authentication.LdapAuthenticatorpublic static InitialLdapContext recreateLdapContext(org.springframework.security.ldap.authentication.LdapAuthenticator authenticator, LdapAuthenticationToken auth)
authenticator - the LdapAuthenticator instance from your application's contextauth - the LdapAuthenticationToken in which to recreate the InitialLdapContextpublic org.springframework.security.ldap.DefaultSpringSecurityContextSource getContextFactory()
public void setContextFactory(org.springframework.security.ldap.DefaultSpringSecurityContextSource contextFactory)
contextFactory - public String getPrincipalPrefix()
public void setPrincipalPrefix(String principalPrefix)
principalPrefix - Copyright © 2007-2015 Ikasan. All Rights Reserved.