public class BindAuthenticator extends AbstractLdapAuthenticator
AbstractLdapAuthenticator
messages
Constructor and Description |
---|
BindAuthenticator(BaseLdapPathContextSource contextSource)
Create an initialized instance using the
BaseLdapPathContextSource
provided. |
Modifier and Type | Method and Description |
---|---|
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(BaseLdapPathContextSource contextSource)
BaseLdapPathContextSource
provided.contextSource
- the BaseLdapPathContextSource instance against which bind
operations will be performed.public DirContextOperations authenticate(Authentication authentication)
LdapAuthenticator
protected void handleBindException(java.lang.String userDn, java.lang.String username, java.lang.Throwable cause)