public class JndiProvider extends Object implements Provider<JndiProviderConfig>
Modifier and Type | Field and Description |
---|---|
private JndiProviderConfig |
config
Provider configuration.
|
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 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 and Description |
---|
JndiProvider() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 Logger logger
private JndiProviderConfig config
public ProviderConnectionFactory<JndiProviderConfig> getConnectionFactory(ConnectionConfig cc)
Provider
getConnectionFactory
in interface Provider<JndiProviderConfig>
cc
- connection configurationpublic JndiProviderConfig getProviderConfig()
Provider
getProviderConfig
in interface Provider<JndiProviderConfig>
public void setProviderConfig(JndiProviderConfig jpc)
Provider
setProviderConfig
in interface Provider<JndiProviderConfig>
jpc
- provider configurationpublic JndiProvider newInstance()
Provider
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 defaultprotected JndiConnectionFactory getJndiConnectionFactory(ConnectionConfig cc, Map<String,Object> env)
getDefaultEnvironment(ConnectionConfig, String)
.cc
- connection configenv
- context environment or null to use the defaultprotected Map<String,Object> getDefaultEnvironment(ConnectionConfig cc, String factory)
cc
- connection configfactory
- class name of the socket factory to use for LDAPSCopyright © 2003-2019 Virginia Tech. All Rights Reserved.