@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class JSONCertificate extends java.lang.Object implements java.io.Serializable
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 |
---|
JSONCertificate(JSONObject certificateObject)
Creates a new JSON certificate that is decoded from the provided JSON
object.
|
Modifier and Type | Method and Description |
---|---|
JSONObject |
getCertificateObject()
Retrieves the JSON object containing an encoded representation of this
certificate.
|
java.lang.String |
getCertificateType()
Retrieves the certificate type for this certificate.
|
java.lang.String |
getIssuerSubjectDN()
Retrieves a string representation of the subject DN of the issuer for this
certificate.
|
java.util.Date |
getNotAfterTime()
Retrieves the notAfter time for this certificate.
|
java.util.Date |
getNotBeforeTime()
Retrieves the notBefore time for this certificate.
|
java.lang.String |
getSerialNumber()
Retrieves a string representation of the serial number for this
certificate.
|
java.lang.String |
getSignatureAlgorithm()
Retrieves the signature algorithm for this certificate.
|
java.lang.String |
getSubjectDN()
Retrieves a string representation of the subject DN for this certificate.
|
java.lang.String |
toString()
Retrieves a string representation of this JSON certificate.
|
public JSONCertificate(@NotNull JSONObject certificateObject)
certificateObject
- The JSON object containing an encoded
representation of this certificate.@NotNull public JSONObject getCertificateObject()
@Nullable public java.lang.String getSubjectDN()
null
if it is not included in the certificate object.@Nullable public java.lang.String getIssuerSubjectDN()
null
if it is not included in the
certificate object.@Nullable public java.lang.String getCertificateType()
null
if it
is not included in the certificate object.@Nullable public java.util.Date getNotBeforeTime()
null
if it is
not included in the certificate object or if its value cannot be
parsed.@Nullable public java.util.Date getNotAfterTime()
null
if it is
not included in the certificate object or if its value cannot be
parsed.@Nullable public java.lang.String getSerialNumber()
null
if it is not included in the certificate object.@Nullable public java.lang.String getSignatureAlgorithm()
null
if
it is not included in the certificate object.