public abstract class AbstractLdapAuthenticator extends Object implements LdapAuthenticator, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages |
| Constructor and Description |
|---|
AbstractLdapAuthenticator(InitialDirContextFactory initialDirContextFactory)
Create an initialized instance to the
InitialDirContextFactory provided. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected InitialDirContextFactory |
getInitialDirContextFactory() |
String[] |
getUserAttributes() |
protected LdapEntryMapper |
getUserDetailsMapper() |
protected List |
getUserDns(String username)
Builds list of possible DNs for the user, worked out from the userDnPatterns property.
|
protected LdapUserSearch |
getUserSearch() |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
void |
setUserAttributes(String[] userAttributes)
Sets the user attributes which will be retrieved from the directory.
|
void |
setUserDetailsMapper(LdapUserDetailsMapper userDetailsMapper) |
void |
setUserDnPatterns(String[] dnPattern)
Sets the pattern which will be used to supply a DN for the user.
|
void |
setUserSearch(LdapUserSearch userSearch) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticatepublic AbstractLdapAuthenticator(InitialDirContextFactory initialDirContextFactory)
InitialDirContextFactory provided.initialDirContextFactory - public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected InitialDirContextFactory getInitialDirContextFactory()
public String[] getUserAttributes()
protected LdapEntryMapper getUserDetailsMapper()
protected List getUserDns(String username)
username - the user's login nameprotected LdapUserSearch getUserSearch()
public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAwarepublic void setUserAttributes(String[] userAttributes)
userAttributes - public void setUserDetailsMapper(LdapUserDetailsMapper userDetailsMapper)
public void setUserDnPatterns(String[] dnPattern)
dnPattern - the array of patterns which will be tried when obtaining a username
to a DN.public void setUserSearch(LdapUserSearch userSearch)
Copyright © 2021. All rights reserved.