public abstract class AbstractLdapUsernamePasswordAuthenticationHandler extends AbstractUsernamePasswordAuthenticationHandler implements org.springframework.beans.factory.InitializingBean
log| Constructor and Description |
|---|
AbstractLdapUsernamePasswordAuthenticationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
afterPropertiesSetInternal() |
protected org.springframework.ldap.core.ContextSource |
getContextSource() |
protected String |
getFilter() |
protected org.springframework.ldap.core.LdapTemplate |
getLdapTemplate()
Method to return the LdapTemplate
|
protected AuthenticationException |
handleLdapError(Exception e)
Available ONLY for subclasses that would want to customize how ldap error codes are handled
|
void |
setContextSource(org.springframework.ldap.core.ContextSource contextSource)
Method to set the datasource and generate a JdbcTemplate.
|
void |
setFilter(String filter) |
void |
setIgnorePartialResultException(boolean ignorePartialResultException) |
void |
setLdapErrorDefinitions(List<LdapErrorDefinition> ldapErrorDefs) |
protected void |
setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
Available ONLY for subclasses that are doing special things with the ContextSource.
|
authenticateUsernamePasswordInternal, doAuthentication, getPasswordEncoder, getPrincipalNameTransformer, setClassToSupport, setPasswordEncoder, setPrincipalNameTransformer, setSupportSubClasses, supportsauthenticate, getName, postAuthenticate, preAuthenticate, setNamepublic AbstractLdapUsernamePasswordAuthenticationHandler()
public final void setContextSource(org.springframework.ldap.core.ContextSource contextSource)
contextSource - the datasource to use.public final void setIgnorePartialResultException(boolean ignorePartialResultException)
public void setLdapErrorDefinitions(List<LdapErrorDefinition> ldapErrorDefs)
protected final org.springframework.ldap.core.LdapTemplate getLdapTemplate()
protected final org.springframework.ldap.core.ContextSource getContextSource()
protected final String getFilter()
public final void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected final void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
ldapTemplate - the LDAPTemplate to use.protected void afterPropertiesSetInternal()
throws Exception
Exceptionpublic final void setFilter(String filter)
filter - The filter to set.protected AuthenticationException handleLdapError(Exception e)
e - The ldap exception that occurred.AuthenticationExceptionCopyright © 2004-2012 Jasig. All Rights Reserved.