|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.providers.ldap.authenticator.AbstractLdapAuthenticator
public abstract class AbstractLdapAuthenticator
Base class for the authenticator implementations.
Field Summary | |
---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages
|
Constructor Summary | |
---|---|
AbstractLdapAuthenticator(org.springframework.ldap.core.ContextSource contextSource)
Create an initialized instance with the ContextSource provided. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected org.springframework.ldap.core.ContextSource |
getContextSource()
|
java.lang.String[] |
getUserAttributes()
|
protected java.util.List |
getUserDns(java.lang.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(java.lang.String[] userAttributes)
Sets the user attributes which will be retrieved from the directory. |
void |
setUserDnPatterns(java.lang.String[] dnPattern)
Sets the pattern which will be used to supply a DN for the user. |
void |
setUserSearch(LdapUserSearch userSearch)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.security.providers.ldap.LdapAuthenticator |
---|
authenticate |
Field Detail |
---|
protected org.springframework.context.support.MessageSourceAccessor messages
Constructor Detail |
---|
public AbstractLdapAuthenticator(org.springframework.ldap.core.ContextSource contextSource)
ContextSource
provided.
contextSource
- Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
protected org.springframework.ldap.core.ContextSource getContextSource()
public java.lang.String[] getUserAttributes()
protected java.util.List getUserDns(java.lang.String username)
username
- the user's login name
protected LdapUserSearch getUserSearch()
public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource
in interface org.springframework.context.MessageSourceAware
public void setUserAttributes(java.lang.String[] userAttributes)
userAttributes
- public void setUserDnPatterns(java.lang.String[] dnPattern)
dnPattern
- the array of patterns which will be tried when converting a username to a DN.public void setUserSearch(LdapUserSearch userSearch)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |