public class BindLdapAuthenticationHandler extends AbstractLdapUsernamePasswordAuthenticationHandler
The search step is typically performed anonymously or using a constant authenticated context such as an administrator username/password or client certificate. This step is suitable for LDAP connection pooling to improve efficiency and performance.
log| Constructor and Description |
|---|
BindLdapAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials) |
protected String |
composeCompleteDnToCheck(String dn,
UsernamePasswordCredentials credentials) |
protected int |
getMaxNumberResults()
Method to return the max number of results allowed.
|
protected int |
getScope()
Method to return the scope.
|
protected String |
getSearchBase()
Method to return the search base.
|
protected int |
getTimeout()
Method to return the timeout.
|
protected boolean |
isAllowMultipleAccounts()
Method to return whether multiple accounts are allowed.
|
void |
setAllowMultipleAccounts(boolean allowMultipleAccounts) |
void |
setMaxNumberResults(int maxNumberResults) |
void |
setScope(int scope) |
void |
setSearchBase(String searchBase) |
void |
setSearchContextSource(org.springframework.ldap.core.ContextSource contextSource)
Sets the context source for LDAP searches.
|
void |
setTimeout(int timeout) |
afterPropertiesSet, afterPropertiesSetInternal, getContextSource, getFilter, getLdapTemplate, handleLdapError, setContextSource, setFilter, setIgnorePartialResultException, setLdapErrorDefinitions, setLdapTemplatedoAuthentication, getPasswordEncoder, getPrincipalNameTransformer, setClassToSupport, setPasswordEncoder, setPrincipalNameTransformer, setSupportSubClasses, supportsauthenticate, getName, postAuthenticate, preAuthenticate, setNameprotected final boolean authenticateUsernamePasswordInternal(UsernamePasswordCredentials credentials) throws AuthenticationException
authenticateUsernamePasswordInternal in class AbstractUsernamePasswordAuthenticationHandlerAuthenticationExceptionprotected String composeCompleteDnToCheck(String dn, UsernamePasswordCredentials credentials)
protected boolean isAllowMultipleAccounts()
protected int getMaxNumberResults()
protected int getScope()
protected String getSearchBase()
protected int getTimeout()
public final void setScope(int scope)
public void setAllowMultipleAccounts(boolean allowMultipleAccounts)
allowMultipleAccounts - The allowMultipleAccounts to set.public final void setMaxNumberResults(int maxNumberResults)
maxNumberResults - The maxNumberResults to set.public final void setSearchBase(String searchBase)
searchBase - The searchBase to set.public final void setTimeout(int timeout)
timeout - The timeout to set.public final void setSearchContextSource(org.springframework.ldap.core.ContextSource contextSource)
PoolingContextSource).
If this is not defined, the context source defined by
AbstractLdapUsernamePasswordAuthenticationHandler.setContextSource(ContextSource) is used.
contextSource - LDAP context source.Copyright © 2004-2012 Jasig. All Rights Reserved.