|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.provider.jndi.JndiProvider
public class JndiProvider
Exposes a connection factory for creating connections with JNDI.
| Field Summary | |
|---|---|
static String |
CONNECT_TIMEOUT
The value of this property is a string that specifies the time in milliseconds that a connection attempt will abort if the connection cannot be made. |
static String |
CONTEXT_FACTORY
The value of this property is a fully qualified class name of the factory class which creates the initial context for the LDAP service provider. |
protected org.slf4j.Logger |
logger
Logger for this class. |
static String |
PROTOCOL
The value of this property is a string that specifies the security protocol for the provider to use. |
static String |
PROVIDER_URL
The value of this property is a URL string that specifies the hostname and port number of the LDAP server, and the root distinguished name of the naming context to use. |
static String |
READ_TIMEOUT
The value of this property is a string that specifies the time in milliseconds that an operation will abort if a response is not received. |
static String |
SOCKET_FACTORY
The value of this property is a string identifying the class name of a socket factory. |
static String |
TRACE
The value of this property is a java.io.OutputStream object into which a hexadecimal dump of the incoming and outgoing LDAP ASN.1 BER packets is written. |
static String |
VERSION
The value of this property is a string that specifies the protocol version for the provider. |
| Constructor Summary | |
|---|---|
JndiProvider()
|
|
| Method Summary | |
|---|---|
ProviderConnectionFactory<JndiProviderConfig> |
getConnectionFactory(ConnectionConfig cc)
Returns the connection factory for this provider. |
protected Map<String,Object> |
getDefaultEnvironment(ConnectionConfig cc,
String factory)
Returns the configuration environment for a JNDI ldap context using the properties found in the supplied connection config. |
protected JndiConnectionFactory |
getJndiConnectionFactory(ConnectionConfig cc,
Map<String,Object> env)
Returns a jndi connection factory using the properties found in the supplied connection config. |
protected JndiStartTLSConnectionFactory |
getJndiStartTLSConnectionFactory(ConnectionConfig cc,
Map<String,Object> env)
Returns a jndi startTLS connection factory using the properties found in the supplied connection config. |
JndiProviderConfig |
getProviderConfig()
Returns the provider configuration. |
JndiProvider |
newInstance()
Creates a new instance of this provider. |
void |
setProviderConfig(JndiProviderConfig jpc)
Sets the provider configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTEXT_FACTORY
public static final String VERSION
public static final String PROVIDER_URL
public static final String PROTOCOL
public static final String SOCKET_FACTORY
public static final String CONNECT_TIMEOUT
public static final String READ_TIMEOUT
public static final String TRACE
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public JndiProvider()
| Method Detail |
|---|
public ProviderConnectionFactory<JndiProviderConfig> getConnectionFactory(ConnectionConfig cc)
getConnectionFactory in interface Provider<JndiProviderConfig>cc - connection configuration
public JndiProviderConfig getProviderConfig()
getProviderConfig in interface Provider<JndiProviderConfig>public void setProviderConfig(JndiProviderConfig jpc)
setProviderConfig in interface Provider<JndiProviderConfig>jpc - provider configurationpublic JndiProvider newInstance()
newInstance in interface Provider<JndiProviderConfig>
protected JndiStartTLSConnectionFactory getJndiStartTLSConnectionFactory(ConnectionConfig cc,
Map<String,Object> env)
getDefaultEnvironment(ConnectionConfig, String).
cc - connection configenv - context environment or null to use the default
protected JndiConnectionFactory getJndiConnectionFactory(ConnectionConfig cc,
Map<String,Object> env)
getDefaultEnvironment(ConnectionConfig, String).
cc - connection configenv - context environment or null to use the default
protected Map<String,Object> getDefaultEnvironment(ConnectionConfig cc,
String factory)
cc - connection configfactory - class name of the socket factory to use for LDAPS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||