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
public class LdapContextSource extends AbstractContextSource
ContextSource implementation which creates anInitialLdapContextinstance. For configuration information, seeAbstractContextSource.- See Also:
AbstractContextSource
-
-
Field Summary
-
Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userDn
-
-
Constructor Summary
Constructors Constructor Description LdapContextSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.naming.directory.DirContextgetDirContextInstance(java.util.Hashtable<java.lang.String,java.lang.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
-
-
-
-
Method Detail
-
getDirContextInstance
protected javax.naming.directory.DirContext getDirContextInstance(java.util.Hashtable<java.lang.String,java.lang.Object> environment) throws javax.naming.NamingExceptionDescription copied from class:AbstractContextSourceImplement in subclass to create a DirContext of the desired type (e.g. InitialDirContext or InitialLdapContext).- Specified by:
getDirContextInstancein classAbstractContextSource- Parameters:
environment- the environment to use when creating the instance.- Returns:
- a new DirContext instance.
- Throws:
javax.naming.NamingException- if one is encountered when creating the instance.
-
-