public class JndiStartTLSConnectionFactory extends AbstractProviderConnectionFactory<JndiProviderConfig>
InitialLdapContext class with the startTLS extended operation.| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
environment
Environment properties.
|
private javax.net.ssl.HostnameVerifier |
hostnameVerifier
Hostname verifier to use for startTLS negotiation.
|
private javax.net.ssl.SSLSocketFactory |
sslSocketFactory
SSL socket factory to use for startTLS negotiation.
|
logger| Constructor and Description |
|---|
JndiStartTLSConnectionFactory(java.lang.String url,
JndiProviderConfig config,
java.util.Map<java.lang.String,java.lang.Object> env,
javax.net.ssl.SSLSocketFactory factory,
javax.net.ssl.HostnameVerifier verifier)
Creates a new jndi startTLS connection factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected JndiStartTLSConnection |
createInternal(java.lang.String url)
Create the provider connection and prepare the connection for use.
|
protected javax.naming.ldap.StartTlsResponse |
startTLS(javax.naming.ldap.LdapContext ctx)
This will attempt the startTLS extended operation on the supplied ldap context.
|
java.lang.String |
toString() |
create, getMetadata, getProviderConfigprivate final java.util.Map<java.lang.String,java.lang.Object> environment
private final javax.net.ssl.SSLSocketFactory sslSocketFactory
private final javax.net.ssl.HostnameVerifier hostnameVerifier
public JndiStartTLSConnectionFactory(java.lang.String url,
JndiProviderConfig config,
java.util.Map<java.lang.String,java.lang.Object> env,
javax.net.ssl.SSLSocketFactory factory,
javax.net.ssl.HostnameVerifier verifier)
url - of the ldap to connect toconfig - provider configurationenv - jndi context environmentfactory - SSL socket factoryverifier - hostname verifierprotected JndiStartTLSConnection createInternal(java.lang.String url) throws LdapException
AbstractProviderConnectionFactorycreateInternal in class AbstractProviderConnectionFactory<JndiProviderConfig>url - to connect toLdapException - if a connection cannot be establishedprotected javax.naming.ldap.StartTlsResponse startTLS(javax.naming.ldap.LdapContext ctx)
throws javax.naming.NamingException,
java.io.IOException
ctx - ldap contextjavax.naming.NamingException - if an error occurs while requesting an extended operationjava.io.IOException - if an error occurs while negotiating TLSpublic java.lang.String toString()
toString in class AbstractProviderConnectionFactory<JndiProviderConfig>