public class JLdapStartTLSConnectionFactory extends AbstractJLdapConnectionFactory<JLdapStartTLSConnection>
Modifier and Type | Field and Description |
---|---|
private SSLSocketFactory |
sslSocketFactory
SSL socket factory to use for startTLS.
|
logger
Constructor and Description |
---|
JLdapStartTLSConnectionFactory(String url,
ConnectionStrategy strategy,
JLdapProviderConfig config,
com.novell.ldap.LDAPConstraints constraints,
Duration timeOut,
SSLSocketFactory factory)
Creates a new jldap tls connection factory.
|
Modifier and Type | Method and Description |
---|---|
protected JLdapStartTLSConnection |
createJLdapConnection(com.novell.ldap.LDAPConnection conn,
JLdapProviderConfig config)
Creates a jldap connection of the appropriate type for this connection factory.
|
protected com.novell.ldap.LDAPConnection |
createLDAPConnection()
Creates an ldap connection for use with this connection factory.
|
protected void |
initializeConnection(com.novell.ldap.LDAPConnection conn)
Initialize the supplied connection after a connection has been established.
|
createInternal
create, getMetadata, getProviderConfig, toString
private final SSLSocketFactory sslSocketFactory
public JLdapStartTLSConnectionFactory(String url, ConnectionStrategy strategy, JLdapProviderConfig config, com.novell.ldap.LDAPConstraints constraints, Duration timeOut, SSLSocketFactory factory)
url
- of the ldap to connect tostrategy
- connection strategyconfig
- provider configurationconstraints
- connection constraintstimeOut
- time in milliseconds that operations will waitfactory
- SSL socket factoryprotected com.novell.ldap.LDAPConnection createLDAPConnection() throws com.novell.ldap.LDAPException
AbstractJLdapConnectionFactory
createLDAPConnection
in class AbstractJLdapConnectionFactory<JLdapStartTLSConnection>
com.novell.ldap.LDAPException
- if an error occurs creating the connectionprotected void initializeConnection(com.novell.ldap.LDAPConnection conn) throws com.novell.ldap.LDAPException
AbstractJLdapConnectionFactory
initializeConnection
in class AbstractJLdapConnectionFactory<JLdapStartTLSConnection>
conn
- to initializecom.novell.ldap.LDAPException
- if an error occurs initializing the connectionprotected JLdapStartTLSConnection createJLdapConnection(com.novell.ldap.LDAPConnection conn, JLdapProviderConfig config)
AbstractJLdapConnectionFactory
createJLdapConnection
in class AbstractJLdapConnectionFactory<JLdapStartTLSConnection>
conn
- to create jldap connection withconfig
- provider configurationCopyright © 2003-2019 Virginia Tech. All Rights Reserved.