|
Spring Security Framework | |||||||||
| 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 MessageSourceAccessor |
messages
|
| Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource |
|---|
password, SUN_LDAP_POOLING_FLAG, userDn |
| Constructor Summary | |
|---|---|
DefaultSpringSecurityContextSource(String providerUrl)
Create and initialize an instance which will connect to the supplied LDAP URL. |
|
| Method Summary | |
|---|---|
DirContext |
getReadWriteContext(String userDn,
Object credentials)
Obtains a context using the supplied distinguished name and credentials. |
void |
setMessageSource(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, getContextFactory, getDirObjectFactory, getReadOnlyContext, getReadWriteContext, getUrls, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn, setUserName |
| 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 |
|---|
getReadOnlyContext, getReadWriteContext |
| Methods inherited from interface org.springframework.ldap.core.support.BaseLdapPathSource |
|---|
getBaseLdapPath, getBaseLdapPathAsString |
| Field Detail |
|---|
protected MessageSourceAccessor messages
| Constructor Detail |
|---|
public DefaultSpringSecurityContextSource(String providerUrl)
providerUrl - an LDAP URL of the form ldap://localhost:389/base_dn| Method Detail |
|---|
public DirContext getReadWriteContext(String userDn,
Object credentials)
SpringSecurityContextSource
getReadWriteContext in interface SpringSecurityContextSourceuserDn - the distinguished name of the user to authenticate ascredentials - the user's password
public void setMessageSource(MessageSource messageSource)
setMessageSource in interface MessageSourceAware
|
Spring Security Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||