public class JndiStartTLSConnectionFactory extends AbstractProviderConnectionFactory<JndiProviderConfig>
InitialLdapContext
class with the startTLS extended operation.Modifier and Type | Field and Description |
---|---|
private ClassLoader |
classLoader
Context class loader to use when instantiating
InitialLdapContext . |
private Map<String,Object> |
environment
Environment properties.
|
private HostnameVerifier |
hostnameVerifier
Hostname verifier to use for startTLS negotiation.
|
private SSLSocketFactory |
sslSocketFactory
SSL socket factory to use for startTLS negotiation.
|
logger
Constructor and Description |
---|
JndiStartTLSConnectionFactory(String url,
ConnectionStrategy strategy,
JndiProviderConfig config,
Map<String,Object> env,
ClassLoader cl,
SSLSocketFactory factory,
HostnameVerifier verifier)
Creates a new jndi startTLS connection factory.
|
Modifier and Type | Method and Description |
---|---|
protected JndiStartTLSConnection |
createInternal(String url)
Create the provider connection and prepare the connection for use.
|
protected StartTlsResponse |
startTLS(LdapContext ctx)
This will attempt the startTLS extended operation on the supplied ldap context.
|
String |
toString() |
create, getMetadata, getProviderConfig
private final ClassLoader classLoader
InitialLdapContext
.private final SSLSocketFactory sslSocketFactory
private final HostnameVerifier hostnameVerifier
public JndiStartTLSConnectionFactory(String url, ConnectionStrategy strategy, JndiProviderConfig config, Map<String,Object> env, ClassLoader cl, SSLSocketFactory factory, HostnameVerifier verifier)
url
- of the ldap to connect tostrategy
- connection strategyconfig
- provider configurationenv
- jndi context environmentcl
- class loaderfactory
- SSL socket factoryverifier
- hostname verifierprotected JndiStartTLSConnection createInternal(String url) throws LdapException
AbstractProviderConnectionFactory
createInternal
in class AbstractProviderConnectionFactory<JndiProviderConfig>
url
- to connect toLdapException
- if a connection cannot be establishedprotected StartTlsResponse startTLS(LdapContext ctx) throws NamingException, IOException
ctx
- ldap contextNamingException
- if an error occurs while requesting an extended operationIOException
- if an error occurs while negotiating TLSpublic String toString()
toString
in class AbstractProviderConnectionFactory<JndiProviderConfig>
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.