public class ApacheLdapConnectionFactory extends AbstractProviderConnectionFactory<ApacheLdapProviderConfig>
Modifier and Type | Field and Description |
---|---|
private org.apache.directory.ldap.client.api.LdapConnectionConfig |
ldapConnectionConfig
Connection configuration.
|
private Duration |
responseTimeOut
Timeout for responses.
|
private boolean |
useStartTLS
Whether to startTLS on connections.
|
logger
Constructor and Description |
---|
ApacheLdapConnectionFactory(String url,
ConnectionStrategy strategy,
ApacheLdapProviderConfig config,
org.apache.directory.ldap.client.api.LdapConnectionConfig lcc,
boolean tls,
Duration timeOut)
Creates a new Apache LDAP connection factory.
|
Modifier and Type | Method and Description |
---|---|
protected ApacheLdapConnection |
createInternal(String url)
Create the provider connection and prepare the connection for use.
|
create, getMetadata, getProviderConfig, toString
private final org.apache.directory.ldap.client.api.LdapConnectionConfig ldapConnectionConfig
private final boolean useStartTLS
private final Duration responseTimeOut
public ApacheLdapConnectionFactory(String url, ConnectionStrategy strategy, ApacheLdapProviderConfig config, org.apache.directory.ldap.client.api.LdapConnectionConfig lcc, boolean tls, Duration timeOut)
url
- of the ldap to connect tostrategy
- connection strategyconfig
- provider configurationlcc
- connection configurationtls
- whether to startTLS on connectionstimeOut
- timeout for responsesprotected ApacheLdapConnection createInternal(String url) throws LdapException
AbstractProviderConnectionFactory
createInternal
in class AbstractProviderConnectionFactory<ApacheLdapProviderConfig>
url
- to connect toLdapException
- if a connection cannot be establishedCopyright © 2003-2019 Virginia Tech. All Rights Reserved.