Class JSONCertificate
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.logs.v2.json.JSONCertificate
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class JSONCertificate
extends Object
implements Serializable
This class provides a data structure that contains information about a
JSON-formatted certificate.
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJSONCertificate(JSONObject certificateObject) Creates a new JSON certificate that is decoded from the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the JSON object containing an encoded representation of this certificate.Retrieves the certificate type for this certificate.Retrieves a string representation of the subject DN of the issuer for this certificate.Retrieves the notAfter time for this certificate.Retrieves the notBefore time for this certificate.Retrieves a string representation of the serial number for this certificate.Retrieves the signature algorithm for this certificate.Retrieves a string representation of the subject DN for this certificate.toString()Retrieves a string representation of this JSON certificate.
-
Constructor Details
-
JSONCertificate
Creates a new JSON certificate that is decoded from the provided JSON object.- Parameters:
certificateObject- The JSON object containing an encoded representation of this certificate.
-
-
Method Details
-
getCertificateObject
Retrieves the JSON object containing an encoded representation of this certificate.- Returns:
- The JSON object containing an encoded representation of this certificate.
-
getSubjectDN
Retrieves a string representation of the subject DN for this certificate.- Returns:
- A string representation of the subject DN for this certificate, or
nullif it is not included in the certificate object.
-
getIssuerSubjectDN
Retrieves a string representation of the subject DN of the issuer for this certificate.- Returns:
- A string representation of the subject DN of the issuer for this
certificate, or
nullif it is not included in the certificate object.
-
getCertificateType
Retrieves the certificate type for this certificate.- Returns:
- The certificate type for this certificate, or
nullif it is not included in the certificate object.
-
getNotBeforeTime
Retrieves the notBefore time for this certificate.- Returns:
- The notBefore time for this certificate, or
nullif it is not included in the certificate object or if its value cannot be parsed.
-
getNotAfterTime
Retrieves the notAfter time for this certificate.- Returns:
- The notAfter time for this certificate, or
nullif it is not included in the certificate object or if its value cannot be parsed.
-
getSerialNumber
Retrieves a string representation of the serial number for this certificate.- Returns:
- A string representation of the serial number for this certificate,
or
nullif it is not included in the certificate object.
-
getSignatureAlgorithm
Retrieves the signature algorithm for this certificate.- Returns:
- The signature algorithm for this certificate, or
nullif it is not included in the certificate object.
-
toString
Retrieves a string representation of this JSON certificate.
-