|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
org.springframework.security.ldap.DefaultSpringSecurityContextSource
public class DefaultSpringSecurityContextSource
SpringSecurityContextSource implementation which uses Spring LDAP's LdapContextSource as a base class. Intended as a replacement for DefaultInitialDirContextFactory from versions of the framework prior to 2.0.
| Field Summary | |
|---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages
|
| Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource |
|---|
password, SUN_LDAP_POOLING_FLAG, userDn |
| Constructor Summary | |
|---|---|
DefaultSpringSecurityContextSource(java.lang.String providerUrl)
Create and initialize an instance which will connect to the supplied LDAP URL. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.springframework.ldap.core.support.LdapContextSource |
|---|
getDirContextInstance |
| Methods inherited from class org.springframework.ldap.core.support.AbstractContextSource |
|---|
afterPropertiesSet, 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, setUserDn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.ldap.core.ContextSource |
|---|
getContext, getReadOnlyContext, getReadWriteContext |
| Methods inherited from interface org.springframework.ldap.core.support.BaseLdapPathSource |
|---|
getBaseLdapPath, getBaseLdapPathAsString |
| Field Detail |
|---|
protected org.springframework.context.support.MessageSourceAccessor messages
| Constructor Detail |
|---|
public DefaultSpringSecurityContextSource(java.lang.String providerUrl)
providerUrl - an LDAP URL of the form ldap://localhost:389/base_dn| Method Detail |
|---|
public javax.naming.directory.DirContext getReadWriteContext(java.lang.String userDn,
java.lang.Object credentials)
SpringSecurityContextSource
getReadWriteContext in interface SpringSecurityContextSourceuserDn - the distinguished name of the user to authenticate ascredentials - the user's password
public void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAware
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||