Class LdapContextSource
java.lang.Object
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,ContextSource
,BaseLdapPathContextSource
,BaseLdapPathSource
ContextSource implementation which creates an
InitialLdapContext
instance. For configuration information, see
AbstractContextSource
.- See Also:
-
Field Summary
Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userDn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DirContext
getDirContextInstance
(Hashtable<String, Object> environment) Implement in subclass to create a DirContext of the desired type (e.g.Methods inherited from class org.springframework.ldap.core.support.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
-
LdapContextSource
public LdapContextSource()
-
-
Method Details
-
getDirContextInstance
protected DirContext getDirContextInstance(Hashtable<String, Object> environment) throws NamingExceptionDescription copied from class:AbstractContextSource
Implement in subclass to create a DirContext of the desired type (e.g. InitialDirContext or InitialLdapContext).- Specified by:
getDirContextInstance
in classAbstractContextSource
- Parameters:
environment
- the environment to use when creating the instance.- Returns:
- a new DirContext instance.
- Throws:
NamingException
- if one is encountered when creating the instance.
-