Class JSONCertificate

  • All Implemented Interfaces:
    java.io.Serializable

    @NotMutable
    @ThreadSafety(level=COMPLETELY_THREADSAFE)
    public final class JSONCertificate
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONCertificate​(JSONObject certificateObject)
      Creates a new JSON certificate that is decoded from the provided JSON object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JSONCertificate

        public JSONCertificate​(@NotNull
                               JSONObject certificateObject)
        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 Detail

      • getCertificateObject

        @NotNull
        public JSONObject getCertificateObject()
        Retrieves the JSON object containing an encoded representation of this certificate.
        Returns:
        The JSON object containing an encoded representation of this certificate.
      • getSubjectDN

        @Nullable
        public java.lang.String getSubjectDN()
        Retrieves a string representation of the subject DN for this certificate.
        Returns:
        A string representation of the subject DN for this certificate, or null if it is not included in the certificate object.
      • getIssuerSubjectDN

        @Nullable
        public java.lang.String 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 null if it is not included in the certificate object.
      • getCertificateType

        @Nullable
        public java.lang.String getCertificateType()
        Retrieves the certificate type for this certificate.
        Returns:
        The certificate type for this certificate, or null if it is not included in the certificate object.
      • getNotBeforeTime

        @Nullable
        public java.util.Date getNotBeforeTime()
        Retrieves the notBefore time for this certificate.
        Returns:
        The notBefore time for this certificate, or null if it is not included in the certificate object or if its value cannot be parsed.
      • getNotAfterTime

        @Nullable
        public java.util.Date getNotAfterTime()
        Retrieves the notAfter time for this certificate.
        Returns:
        The notAfter time for this certificate, or null if it is not included in the certificate object or if its value cannot be parsed.
      • getSerialNumber

        @Nullable
        public java.lang.String getSerialNumber()
        Retrieves a string representation of the serial number for this certificate.
        Returns:
        A string representation of the serial number for this certificate, or null if it is not included in the certificate object.
      • getSignatureAlgorithm

        @Nullable
        public java.lang.String getSignatureAlgorithm()
        Retrieves the signature algorithm for this certificate.
        Returns:
        The signature algorithm for this certificate, or null if it is not included in the certificate object.
      • toString

        @NotNull
        public java.lang.String toString()
        Retrieves a string representation of this JSON certificate.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of this JSON certificate.