|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.core.support.AbstractContextSource org.springframework.ldap.core.support.LdapContextSource
public class LdapContextSource
ContextSource implementation which creates an InitialLdapContext
instance. For configuration information, see
AbstractContextSource
.
AbstractContextSource
Field Summary |
---|
Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource |
---|
password, SUN_LDAP_POOLING_FLAG, userDn |
Constructor Summary | |
---|---|
LdapContextSource()
|
Method Summary | |
---|---|
protected java.util.Hashtable |
getAnonymousEnv()
|
protected javax.naming.directory.DirContext |
getDirContextInstance(java.util.Hashtable environment)
Implement in subclass to create a DirContext of the desired type (e.g. |
void |
setResponseControlFactory(java.lang.Class responseControlFactory)
Set the ResponseControlFactory to use. |
Methods inherited from class org.springframework.ldap.core.support.AbstractContextSource |
---|
afterPropertiesSet, assembleProviderUrlString, 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 |
Constructor Detail |
---|
public LdapContextSource()
Method Detail |
---|
protected java.util.Hashtable getAnonymousEnv()
getAnonymousEnv
in class AbstractContextSource
protected javax.naming.directory.DirContext getDirContextInstance(java.util.Hashtable environment) throws javax.naming.NamingException
AbstractContextSource
getDirContextInstance
in class AbstractContextSource
environment
- the environment to use when creating the instance.
javax.naming.NamingException
- if one is encountered when creating the instance.public void setResponseControlFactory(java.lang.Class responseControlFactory)
ResponseControlFactory
. The specified
class needs to be an implementation of
ControlFactory
.
responseControlFactory
- the ResponseControlFactory to be used. Null means reset to the
default.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |