@Mutable @ThreadSafety(level=NOT_THREADSAFE) public final class TopologyRegistryTrustManagerProperties extends java.lang.Object implements java.io.Serializable
TopologyRegistryTrustManager
.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
TopologyRegistryTrustManagerProperties(java.io.File configurationFile)
Creates a new topology registry trust manager properties object with the
specified configuration file and the default settings for all other
properties.
|
TopologyRegistryTrustManagerProperties(java.lang.String configurationFilePath)
Creates a new topology registry trust manager properties object with the
specified configuration file and the default settings for all other
properties.
|
Modifier and Type | Method and Description |
---|---|
long |
getCacheDurationMillis()
Retrieves the maximum length of time in milliseconds that cached topology
registry information should be considered valid.
|
java.io.File |
getConfigurationFile()
Retrieves the server configuration file from which the topology registry
certificates will be read.
|
boolean |
ignoreIssuerCertificateValidityWindow()
Indicates whether to ignore the validity window for issuer certificates
when determining whether to trust a certificate chain.
|
boolean |
ignorePeerCertificateValidityWindow()
Indicates whether to ignore the validity window for the peer certificate
when determining whether to trust a certificate chain.
|
boolean |
requirePeerCertificateInTopologyRegistry()
Indicates whether to require the peer certificate itself to be included in
the topology registry for a certificate chain to be trusted.
|
void |
setCacheDuration(long cacheDurationValue,
java.util.concurrent.TimeUnit cacheDurationTimeUnit)
Specifies the maximum length of time that cached topology registry
information should be considered valid.
|
void |
setConfigurationFile(java.io.File configurationFile)
Specifies the server configuration file from which the topology registry
certificates will be read.
|
void |
setIgnoreIssuerCertificateValidityWindow(boolean ignoreIssuerCertificateValidityWindow)
Indicates whether to ignore the validity window for the issuer certificates
when determining whether to trust a certificate chain.
|
void |
setIgnorePeerCertificateValidityWindow(boolean ignorePeerCertificateValidityWindow)
Indicates whether to ignore the validity window for the peer certificate
when determining whether to trust a certificate chain.
|
void |
setRequirePeerCertificateInTopologyRegistry(boolean requirePeerCertificateInTopologyRegistry)
Specifies whether to require the peer certificate itself to be included in
the topology registry for a certificate chain to be trusted.
|
java.lang.String |
toString()
Retrieves a string representation of the topology registry trust manager
properties.
|
void |
toString(java.lang.StringBuilder buffer)
Appends a string representation of the topology registry trust manager
properties to the given buffer.
|
public TopologyRegistryTrustManagerProperties(@NotNull java.lang.String configurationFilePath)
configurationFilePath
- The path to the server configuration file
from which the topology registry
certificates will be read. It must not be
null
, and the file must exist.public TopologyRegistryTrustManagerProperties(@NotNull java.io.File configurationFile)
configurationFile
- The server configuration file from which the
topology registry certificates will be read. It
must not be null
, and the file must
exist.@NotNull public java.io.File getConfigurationFile()
public void setConfigurationFile(@NotNull java.io.File configurationFile)
configurationFile
- The server configuration file from which the
topology registry certificates will be read. It
must not be null
, and the file must
exist.public long getCacheDurationMillis()
public void setCacheDuration(long cacheDurationValue, @NotNull java.util.concurrent.TimeUnit cacheDurationTimeUnit)
cacheDurationValue
- The cache duration value to use with the
given time unit. If this is less than or
equal to zero, then topology registry
information will not be cached.cacheDurationTimeUnit
- The time unit to use with the given value.
It must not be null
.public boolean requirePeerCertificateInTopologyRegistry()
true
if a certificate chain may only be trusted if the
topology registry includes the peer certificate itself, or
false
if a certificate chain may be trusted if the
topology registry contains the peer certificate or any of its
issuers.public void setRequirePeerCertificateInTopologyRegistry(boolean requirePeerCertificateInTopologyRegistry)
requirePeerCertificateInTopologyRegistry
- Indicates whether to require the peer certificate itself to be
included in the topology registry for a certificate chain to
be trusted. If this is true
, then a certificate chain
may be trusted only if the topology registry contains the
peer certificate itself. If this is false
, then a
certificate chain may be trusted if the topology registry
contains the peer certificate or any of its issuers.public boolean ignorePeerCertificateValidityWindow()
true
if a certificate chain may be considered trusted
even if the current time is outside the peer certificate's
validity window, or false
if a certificate chain may only
be considered trusted if the current time is between the
notBefore
and notAfter
timestamps for the peer
certificate.public void setIgnorePeerCertificateValidityWindow(boolean ignorePeerCertificateValidityWindow)
ignorePeerCertificateValidityWindow
- Specifies whether to ignore the validity window for the peer
certificate when determining whether to trust a certificate
chain. If this is true
, then a certificate chain may
be trusted even if the current time is outside the peer
certificate's validity window. If this is false
, then
a certificate chain may only be trusted if the current time is
between the notBefore
and notAfter
timestamps
for the peer certificate.public boolean ignoreIssuerCertificateValidityWindow()
true
if a certificate chain may be considered trusted
even if the current time is outside the any issuer certificate's
validity window, or false
if a certificate chain may only
be considered trusted if the current time is between the
notBefore
and notAfter
timestamps for all issuer
certificates.public void setIgnoreIssuerCertificateValidityWindow(boolean ignoreIssuerCertificateValidityWindow)
ignoreIssuerCertificateValidityWindow
- Specifies whether to ignore the validity window for issuer
certificates when determining whether to trust a certificate
chain. If this is true
, then a certificate chain may
be trusted even if the current time is outside any issuer
certificate's validity window. If this is false
, then
a certificate chain may only be trusted if the current time is
between the notBefore
and notAfter
timestamps
for all issuer certificate.@NotNull public java.lang.String toString()
toString
in class java.lang.Object