LoggableConfiguration
LDAPServerConnectionPoolDetails
public class LDAPServerDetails extends Object implements LoggableConfiguration
The configuration is stored as public fields which become immutable (final) after their initialisation.
Property keys: [prefix]*
Modifier and Type | Field | Description |
---|---|---|
int |
connectTimeout |
The timeout in milliseconds for LDAP connect requests.
|
static int |
DEFAULT_CONNECT_TIMEOUT |
The default timeout in milliseconds for LDAP connect requests.
|
static int |
DEFAULT_RESPONSE_TIMEOUT |
The default timeout in milliseconds for LDAP server responses.
|
static LDAPConnectionSecurity |
DEFAULT_SECURITY |
The default LDAP connection security.
|
static ServerSelectionAlgorithm |
DEFAULT_SELECTION_ALGORITHM |
The default server selection algorithm.
|
static boolean |
DEFAULT_SELF_SIGNED_CERTS_TRUST |
The default trust for self-signed certificates.
|
int |
responseTimeout |
The timeout in milliseconds for LDAP server responses.
|
LDAPConnectionSecurity |
security |
The LDAP connection security.
|
ServerSelectionAlgorithm |
selectionAlgorithm |
The preferred algorithm for selecting an LDAP server from the array
specified by
url , null if only a single server URL
is defined. |
boolean |
trustSelfSignedCerts |
Determines whether to accept self-signed certificates presented by
the LDAP server (for secure SSL or StartTLS connections).
|
com.unboundid.ldap.sdk.LDAPURL[] |
url |
Specifies an array of one or more LDAP server URLs.
|
LOG_CATEGORY
Constructor | Description |
---|---|
LDAPServerDetails(com.unboundid.ldap.sdk.LDAPURL[] url,
ServerSelectionAlgorithm selectionAlgorithm,
LDAPConnectionSecurity security,
int connectTimeout,
int responseTimeout,
boolean trustSelfSignedCerts) |
Creates a new LDAP server details instance.
|
LDAPServerDetails(com.unboundid.ldap.sdk.LDAPURL url,
LDAPConnectionSecurity security,
int connectTimeout,
int responseTimeout,
boolean trustSelfSignedCerts) |
Creates a new LDAP server details instance.
|
LDAPServerDetails(String prefix,
Properties props) |
Creates a new LDAP server details instance from the specified
properties.
|
LDAPServerDetails(String prefix,
Properties props,
boolean requireURL) |
Creates a new LDAP server details instance from the specified
properties.
|
public final com.unboundid.ldap.sdk.LDAPURL[] url
null
the array is guaranteed to contain at least one LDAP
URL.
Property key: [prefix]url
public final ServerSelectionAlgorithm selectionAlgorithm
url
, null
if only a single server URL
is defined.
Property key: [prefix]selectionAlgorithm
public static final ServerSelectionAlgorithm DEFAULT_SELECTION_ALGORITHM
public final LDAPConnectionSecurity security
Property key: [prefix]security
public static final LDAPConnectionSecurity DEFAULT_SECURITY
public final int connectTimeout
Property key: [prefix]connectTimeout
public static final int DEFAULT_CONNECT_TIMEOUT
public final int responseTimeout
Property key: [prefix]responseTimeout
public static final int DEFAULT_RESPONSE_TIMEOUT
public final boolean trustSelfSignedCerts
Property key: [prefix]trustSelfSignedCerts
public static final boolean DEFAULT_SELF_SIGNED_CERTS_TRUST
public LDAPServerDetails(com.unboundid.ldap.sdk.LDAPURL url, LDAPConnectionSecurity security, int connectTimeout, int responseTimeout, boolean trustSelfSignedCerts)
url
- The LDAP server URL. Must not be
null
.security
- The LDAP connection security. Must not
be null
.connectTimeout
- The LDAP server connect timeout, in
milliseconds. If zero the underlying
LDAP client library will determine this
value.responseTimeout
- The LDAP server response timeout, in
milliseconds. If zero the underlying
LDAP client library will determine this
value.trustSelfSignedCerts
- Determines whether to accept self-signed
certificates presented by the LDAP
server (for secure SSL or StartTLS
connections).public LDAPServerDetails(com.unboundid.ldap.sdk.LDAPURL[] url, ServerSelectionAlgorithm selectionAlgorithm, LDAPConnectionSecurity security, int connectTimeout, int responseTimeout, boolean trustSelfSignedCerts)
url
- An array of one or more LDAP server
URLs. It must contain at least one LDAP
URL and not be null
.selectionAlgorithm
- The preferred algorithm for selecting an
LDAP server from the URL array. May be
null
if only a single LDAP
server URL is defined.security
- The LDAP connection security. Must not
be null
.connectTimeout
- The LDAP server connect timeout, in
milliseconds. If zero the underlying
LDAP client library will determine this
value.responseTimeout
- The LDAP server response timeout, in
milliseconds. If zero the underlying
LDAP client library will determine this
value.trustSelfSignedCerts
- Determines whether to accept self-signed
certificates presented by the LDAP
server (for secure SSL or StartTLS
connections).public LDAPServerDetails(String prefix, Properties props) throws com.thetransactioncompany.util.PropertyParseException
Mandatory properties:
Conditionally mandatory properties:
Optional properties, with defaults:
prefix
- The properties prefix. Must not be null
.props
- The properties. Must not be null
.com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.public LDAPServerDetails(String prefix, Properties props, boolean requireURL) throws com.thetransactioncompany.util.PropertyParseException
Mandatory properties:
Conditionally mandatory properties:
Optional properties, with defaults:
prefix
- The properties prefix. Must not be null
.props
- The properties. Must not be null
.com.thetransactioncompany.util.PropertyParseException
- On a missing or invalid property.public void log()
log
in interface LoggableConfiguration
Copyright © 2018 Connect2id. All rights reserved.