@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class X509CertificateMonitorEntry extends MonitorEntry
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.
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.Constructor and Description |
---|
X509CertificateMonitorEntry(Entry entry)
Creates a new X.509 certificate monitor entry from the provided entry.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlias()
Retrieves the alias used to identify the certificate in the key store.
|
java.lang.String |
getComponentName()
Retrieves the name of the component with which the certificate is
associated.
|
java.lang.String |
getComponentType()
Retrieves the type of component with which the certificate is associated.
|
java.lang.String |
getContextType()
Retrieves the context in which the certificate is being used.
|
java.lang.Boolean |
getCurrentlyValid()
Indicates whether the certificate is currently within its validity window.
|
java.util.List<java.lang.String> |
getDependentComponents()
Retrieves the names of any components that depend on the certificate.
|
java.lang.String |
getHumanReadableTimeUntilExpiration()
Retrieves a human-readable representation of the length of time until the
certificate expires.
|
java.lang.String |
getInvalidReason()
Retrieves the reason that the certificate is considered invalid.
|
java.lang.String |
getIssuerSubjectDN()
Retrieves the subject DN for the certificate's issuer.
|
java.lang.String |
getKeyStoreFile()
Retrieves the path to the key store file in which the certificate is held.
|
java.lang.String |
getKeyStoreType()
Retrieves the type of key store in which the certificate is held.
|
java.util.Map<java.lang.String,MonitorAttribute> |
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.
|
java.lang.String |
getMonitorDescription()
Retrieves a human-readable description name for this monitor entry.
|
java.lang.String |
getMonitorDisplayName()
Retrieves a human-readable display name for this monitor entry.
|
java.util.Date |
getNotValidAfter()
Retrieves the latest time that the certificate should be considered
valid.
|
java.util.Date |
getNotValidBefore()
Retrieves the earliest time that the certificate should be considered
valid.
|
java.util.List<java.lang.String> |
getProperties()
Retrieves a list of context-specific properties for the certificate.
|
java.lang.String |
getProviderType()
Retrieves the type of provider in which the certificate is held.
|
java.lang.Long |
getSecondsUntilExpiration()
Retrieves the length of time in seconds until the certificate expires.
|
java.lang.String |
getSerialNumber()
Retrieves a string representation of the certificate's serial number.
|
java.lang.String |
getSubjectDN()
Retrieves the subject DN for the certificate.
|
addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, addMonitorAttribute, decode, getBoolean, getDate, getDN, getDouble, getEntry, getInteger, getLong, getMonitorClass, getMonitorName, getString, getStrings, toString, toString
public X509CertificateMonitorEntry(@NotNull Entry entry)
entry
- The entry to be parsed as an X.509 certificate monitor
entry. It must not be null
.@Nullable public java.lang.String getSubjectDN()
null
if it was not
included in the monitor entry.@Nullable public java.lang.String getIssuerSubjectDN()
null
if it
was not included in the monitor entry.@Nullable public java.util.Date getNotValidBefore()
null
if it was not included in the monitor entry.@Nullable public java.util.Date getNotValidAfter()
null
if it was not included in the monitor entry.@Nullable public java.lang.Long getSecondsUntilExpiration()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getHumanReadableTimeUntilExpiration()
null
if it was not included in the
monitor entry.@Nullable public java.lang.Boolean getCurrentlyValid()
Boolean.TRUE
if the certificate is within its validity
window, Boolean.FALSE
if it is outside its validity
window, or null
if it was not included in the monitor
entry.@Nullable public java.lang.String getInvalidReason()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getSerialNumber()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getContextType()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getComponentType()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getComponentName()
null
if it was not included in the monitor
entry.@Nullable public java.lang.String getKeyStoreType()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getKeyStoreFile()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getAlias()
null
if it was not included in the monitor entry.@Nullable public java.lang.String getProviderType()
null
if it was not included in the monitor entry.@NotNull public java.util.List<java.lang.String> getDependentComponents()
@NotNull public java.util.List<java.lang.String> getProperties()
@NotNull public java.lang.String getMonitorDisplayName()
getMonitorDisplayName
in class MonitorEntry
@NotNull public java.lang.String getMonitorDescription()
getMonitorDescription
in class MonitorEntry
@NotNull public java.util.Map<java.lang.String,MonitorAttribute> getMonitorAttributes()
getMonitorAttributes
in class MonitorEntry