Class DirContextSource
java.lang.Object
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.DirContextSource
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ContextSource, BaseLdapPathContextSource, BaseLdapPathSource
ContextSource implementation which creates InitialDirContext instances, for LDAPv2
compatibility. For configuration information, see
AbstractContextSource.- See Also:
-
Field Summary
Fields inherited from class AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userDn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DirContextgetDirContextInstance(Hashtable environment) Create a new InitialDirContext instance.Methods inherited from class AbstractContextSource
afterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticatedEnv, getAuthenticationSource, getBaseLdapName, getBaseLdapPath, getBaseLdapPathAsString, getContext, getContextFactory, getDirObjectFactory, getPassword, getReadOnlyContext, getReadWriteContext, getUrls, getUserDn, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setAuthenticationStrategy, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setReferral, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn
-
Constructor Details
-
DirContextSource
public DirContextSource()
-
-
Method Details
-
getDirContextInstance
Create a new InitialDirContext instance.- Specified by:
getDirContextInstancein classAbstractContextSource- Parameters:
environment- the environment to use when creating the context.- Returns:
- a new InitialDirContext implementation.
- Throws:
NamingException- if one is encountered when creating the instance.
-