public class JndiStartTLSConnectionFactory extends AbstractProviderConnectionFactory<JndiProviderConfig>
InitialLdapContext
class with the startTLS extended operation.logger
Constructor and Description |
---|
JndiStartTLSConnectionFactory(String url,
JndiProviderConfig config,
Map<String,Object> env,
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
public JndiStartTLSConnectionFactory(String url, JndiProviderConfig config, Map<String,Object> env, SSLSocketFactory factory, HostnameVerifier verifier)
url
- of the ldap to connect toconfig
- provider configurationenv
- jndi context environmentfactory
- 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 © 2023. All rights reserved.