public class DefaultSpringSecurityContextSource extends org.springframework.ldap.core.support.LdapContextSource implements SpringSecurityContextSource, org.springframework.context.MessageSourceAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages |
| Constructor and Description |
|---|
DefaultSpringSecurityContextSource(java.lang.String providerUrl)
Create and initialize an instance which will connect to the supplied LDAP URL.
|
| Modifier and Type | Method and Description |
|---|---|
javax.naming.directory.DirContext |
getReadWriteContext(java.lang.String userDn,
java.lang.Object credentials)
Obtains a context using the supplied distinguished name and credentials.
|
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
getDirContextInstanceafterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticatedEnv, getAuthenticationSource, getBase, getBaseLdapPath, getBaseLdapPathAsString, getContext, getContextFactory, getDirObjectFactory, getReadOnlyContext, getReadWriteContext, getUrls, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setAuthenticationStrategy, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setReferral, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDnclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DefaultSpringSecurityContextSource(java.lang.String providerUrl)
providerUrl - an LDAP URL of the form ldap://localhost:389/base_dnpublic javax.naming.directory.DirContext getReadWriteContext(java.lang.String userDn,
java.lang.Object credentials)
SpringSecurityContextSourcegetReadWriteContext in interface SpringSecurityContextSourceuserDn - the distinguished name of the user to authenticate ascredentials - the user's passwordpublic void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAware