org.springframework.ldap.core.support
Class LdapContextSource
java.lang.Object
org.springframework.ldap.core.support.AbstractContextSource
org.springframework.ldap.core.support.LdapContextSource
- All Implemented Interfaces:
- InitializingBean, ContextSource, BaseLdapPathContextSource, BaseLdapPathSource
public class LdapContextSource
- extends AbstractContextSource
ContextSource implementation which creates an InitialLdapContext
instance. For configuration information, see
AbstractContextSource.
- Author:
- Mattias Hellborg Arthursson, Adam Skogman, Ulrik Sandberg
- See Also:
AbstractContextSource
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapContextSource
public LdapContextSource()
getDirContextInstance
protected DirContext getDirContextInstance(Hashtable<String,Object> environment)
throws NamingException
- Description copied from class:
AbstractContextSource
- Implement in subclass to create a DirContext of the desired type (e.g.
InitialDirContext or InitialLdapContext).
- Specified by:
getDirContextInstance in class AbstractContextSource
- 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.