public class BindAuthenticator extends AbstractLdapAuthenticator
AbstractLdapAuthenticator
messages
Constructor and Description |
---|
BindAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
Create an initialized instance using the
BaseLdapPathContextSource
provided. |
Modifier and Type | Method and Description |
---|---|
org.springframework.ldap.core.DirContextOperations |
authenticate(Authentication authentication)
Authenticates as a user and obtains additional user information from the directory.
|
protected void |
handleBindException(java.lang.String userDn,
java.lang.String username,
java.lang.Throwable cause)
Allows subclasses to inspect the exception thrown by an attempt to bind with a
particular DN.
|
afterPropertiesSet, getContextSource, getUserAttributes, getUserDns, getUserSearch, setMessageSource, setUserAttributes, setUserDnPatterns, setUserSearch
public BindAuthenticator(org.springframework.ldap.core.support.BaseLdapPathContextSource contextSource)
BaseLdapPathContextSource
provided.contextSource
- the BaseLdapPathContextSource instance against which bind
operations will be performed.public org.springframework.ldap.core.DirContextOperations authenticate(Authentication authentication)
LdapAuthenticator
protected void handleBindException(java.lang.String userDn, java.lang.String username, java.lang.Throwable cause)