Class X509CertificateMonitorEntry
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
com.unboundid.ldap.sdk.unboundidds.monitors.X509CertificateMonitorEntry
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class X509CertificateMonitorEntry
extends MonitorEntry
This class defines a monitor entry that provides information about X.509
certificates that are in use by the Directory Server.
The set of certificate monitor entries published by the directory server can be obtained using the
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.
The set of certificate monitor entries published by the directory server can be obtained using the
MonitorManager.getX509CertificateMonitorEntries(com.unboundid.ldap.sdk.LDAPConnection)
method. Specific methods are available for accessing the associated monitor
data (e.g., getSubjectDN() to retrieve the certificate's subject DN),
and there are also methods for accessing this information in a generic manner
(e.g., getMonitorAttributes() to retrieve all of the monitor
attributes). See the MonitorManager class documentation for an
example that demonstrates the use of the generic API for accessing monitor
data.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionX509CertificateMonitorEntry(Entry entry) Creates a new X.509 certificate monitor entry from the provided entry. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Retrieves the alias used to identify the certificate in the key store.Retrieves the name of the component with which the certificate is associated.Retrieves the type of component with which the certificate is associated.Retrieves the context in which the certificate is being used.Indicates whether the certificate is currently within its validity window.Retrieves the names of any components that depend on the certificate.Retrieves a human-readable representation of the length of time until the certificate expires.Retrieves the reason that the certificate is considered invalid.Retrieves the subject DN for the certificate's issuer.Retrieves the path to the key store file in which the certificate is held.Retrieves the type of key store in which the certificate is held.Retrieves the set of parsed monitor attributes for this monitor entry, mapped from a unique identifier (in all lowercase characters) to the corresponding monitor attribute.Retrieves a human-readable description name for this monitor entry.Retrieves a human-readable display name for this monitor entry.Retrieves the latest time that the certificate should be considered valid.Retrieves the earliest time that the certificate should be considered valid.Retrieves a list of context-specific properties for the certificate.Retrieves the type of provider in which the certificate is held.Retrieves the length of time in seconds until the certificate expires.Retrieves a string representation of the certificate's serial number.Retrieves the subject DN for the certificate.Methods inherited from class com.unboundid.ldap.sdk.unboundidds.monitors.MonitorEntry
addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, decode, getBoolean, getDate, getDN, getDouble, getEntry, getInteger, getLong, getMonitorClass, getMonitorName, getString, getStrings, toString, toString
-
Constructor Details
-
X509CertificateMonitorEntry
Creates a new X.509 certificate monitor entry from the provided entry.- Parameters:
entry- The entry to be parsed as an X.509 certificate monitor entry. It must not benull.
-
-
Method Details
-
getSubjectDN
Retrieves the subject DN for the certificate.- Returns:
- The subject DN for the certificate, or
nullif it was not included in the monitor entry.
-
getIssuerSubjectDN
Retrieves the subject DN for the certificate's issuer.- Returns:
- The subject DN for the certificate's issuer, or
nullif it was not included in the monitor entry.
-
getNotValidBefore
Retrieves the earliest time that the certificate should be considered valid.- Returns:
- The earliest time that the certificate should be considered valid,
or
nullif it was not included in the monitor entry.
-
getNotValidAfter
Retrieves the latest time that the certificate should be considered valid.- Returns:
- The latest time that the certificate should be considered valid,
or
nullif it was not included in the monitor entry.
-
getSecondsUntilExpiration
Retrieves the length of time in seconds until the certificate expires.- Returns:
- The length of time in seconds until the certificate expires, or
nullif it was not included in the monitor entry.
-
getHumanReadableTimeUntilExpiration
Retrieves a human-readable representation of the length of time until the certificate expires.- Returns:
- A human-readable representation of the length of time until the
certificate expires, or
nullif it was not included in the monitor entry.
-
getCurrentlyValid
Indicates whether the certificate is currently within its validity window.- Returns:
Boolean.TRUEif the certificate is within its validity window,Boolean.FALSEif it is outside its validity window, ornullif it was not included in the monitor entry.
-
getInvalidReason
Retrieves the reason that the certificate is considered invalid.- Returns:
- The reason that the certificate is considered invalid, or
nullif it was not included in the monitor entry.
-
getSerialNumber
Retrieves a string representation of the certificate's serial number.- Returns:
- A string representation of the certificate's serial number, or
nullif it was not included in the monitor entry.
-
getContextType
Retrieves the context in which the certificate is being used.- Returns:
- The context in which the certificate is being used, or
nullif it was not included in the monitor entry.
-
getComponentType
Retrieves the type of component with which the certificate is associated.- Returns:
- The type of component with which the certificate is associated, or
nullif it was not included in the monitor entry.
-
getComponentName
Retrieves the name of the component with which the certificate is associated.- Returns:
- The name of the component with which the certificate is
associated, or
nullif it was not included in the monitor entry.
-
getKeyStoreType
Retrieves the type of key store in which the certificate is held.- Returns:
- The type of key store in which the certificate is held, or
nullif it was not included in the monitor entry.
-
getKeyStoreFile
Retrieves the path to the key store file in which the certificate is held.- Returns:
- The path to the key store file in which the certificate is held,
or
nullif it was not included in the monitor entry.
-
getAlias
Retrieves the alias used to identify the certificate in the key store.- Returns:
- The alias used to identify the certificate in the key store, or
nullif it was not included in the monitor entry.
-
getProviderType
Retrieves the type of provider in which the certificate is held.- Returns:
- The type of provider in which the certificate is held, or
nullif it was not included in the monitor entry.
-
getDependentComponents
Retrieves the names of any components that depend on the certificate.- Returns:
- The names of any components that depend on the certificate, or an empty list if it was not included in the monitor entry.
-
getProperties
Retrieves a list of context-specific properties for the certificate.- Returns:
- A list of context-specific properties for the certificate, or an empty list if it was not included in the monitor entry.
-
getMonitorDisplayName
Retrieves a human-readable display name for this monitor entry.- Overrides:
getMonitorDisplayNamein classMonitorEntry- Returns:
- A human-readable display name for this monitor entry.
-
getMonitorDescription
Retrieves a human-readable description name for this monitor entry.- Overrides:
getMonitorDescriptionin classMonitorEntry- Returns:
- A human-readable description name for this monitor entry.
-
getMonitorAttributes
Retrieves the set of parsed monitor attributes for this monitor entry, mapped from a unique identifier (in all lowercase characters) to the corresponding monitor attribute.- Overrides:
getMonitorAttributesin classMonitorEntry- Returns:
- The set of parsed monitor attributes for this monitor entry.
-