public class DirContextSourceFactory extends Object implements ObjectFactory
DirContextSource
instances backed by a
DirContextSource.Builder
.
This factory should work in any servlet container with JNDI support, but was tested under Apache
Tomcat 8.5.x only.
Integration in your context.xml
is as simple as:
<Context> [...] <!-- Add this --> <Resource name="ldap/localname" type="net.sf.michaelo.dirctxsrc.DirContextSource" factory="net.sf.michaelo.dirctxsrc.DirContextSourceFactory" urls="ldap://hostname ldap://another-hostname" /> [...] </Context>For a complete reference, see documentation site.
Modifier and Type | Field and Description |
---|---|
protected static String |
PROP_ADDITIONAL_PROPERTIES |
protected static String |
PROP_AUTH |
protected static String |
PROP_BINARY_ATTRIBUTES |
protected static String |
PROP_CONTEXT_FACTORY |
protected static String |
PROP_DEBUG |
protected static String |
PROP_LOGIN_ENTRY_NAME |
protected static String |
PROP_MUTUAL_AUTH |
protected static String |
PROP_OBJECT_FACTORIES |
protected static String |
PROP_QOP |
protected static String |
PROP_REFERRAL |
protected static String |
PROP_RETRIES |
protected static String |
PROP_RETRY_WAIT |
protected static String |
PROP_URLS |
protected Properties |
properties |
protected static List<String> |
PROPERTIES_NAMES |
Constructor and Description |
---|
DirContextSourceFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
getObjectInstance(Object obj,
Name name,
Context ctx,
Hashtable<?,?> environment) |
protected String |
getProperty(String propertyName) |
protected static final String PROP_CONTEXT_FACTORY
protected static final String PROP_URLS
protected static final String PROP_AUTH
protected static final String PROP_LOGIN_ENTRY_NAME
protected static final String PROP_OBJECT_FACTORIES
protected static final String PROP_MUTUAL_AUTH
protected static final String PROP_QOP
protected static final String PROP_DEBUG
protected static final String PROP_RETRIES
protected static final String PROP_RETRY_WAIT
protected static final String PROP_BINARY_ATTRIBUTES
protected static final String PROP_REFERRAL
protected static final String PROP_ADDITIONAL_PROPERTIES
protected final Properties properties
Copyright © 2012–2019 Michael Osipov. All rights reserved.