Class Certificate


  • public class Certificate
    extends java.lang.Object
    Certificate details.
    • Constructor Summary

      Constructors 
      Constructor Description
      Certificate​(java.lang.String subject, java.lang.String issuer, java.lang.String issueDate, java.lang.String expirationDate, java.lang.String serialNumber, java.lang.String sha1Fingerprint)
      Certificate details.
      Certificate​(java.lang.String subject, java.lang.String issuer, java.lang.String issueDate, java.lang.String expirationDate, java.lang.String serialNumber, java.lang.String sha1Fingerprint, java.lang.String commonName)
      Certificate details.
    • Field Detail

      • subject

        protected final java.lang.String subject
      • issuer

        protected final java.lang.String issuer
      • issueDate

        protected final java.lang.String issueDate
      • expirationDate

        protected final java.lang.String expirationDate
      • serialNumber

        protected final java.lang.String serialNumber
      • sha1Fingerprint

        protected final java.lang.String sha1Fingerprint
      • commonName

        protected final java.lang.String commonName
    • Constructor Detail

      • Certificate

        public Certificate​(java.lang.String subject,
                           java.lang.String issuer,
                           java.lang.String issueDate,
                           java.lang.String expirationDate,
                           java.lang.String serialNumber,
                           java.lang.String sha1Fingerprint,
                           java.lang.String commonName)
        Certificate details.
        Parameters:
        subject - Certificate subject. Must not be null.
        issuer - Certificate issuer. Must not be null.
        issueDate - Certificate issue date. Must not be null.
        expirationDate - Certificate expiration date. Must not be null.
        serialNumber - Certificate serial number. Must not be null.
        sha1Fingerprint - Certificate sha1 fingerprint. Must not be null.
        commonName - Certificate common name.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • Certificate

        public Certificate​(java.lang.String subject,
                           java.lang.String issuer,
                           java.lang.String issueDate,
                           java.lang.String expirationDate,
                           java.lang.String serialNumber,
                           java.lang.String sha1Fingerprint)
        Certificate details.

        The default values for unset fields will be used.

        Parameters:
        subject - Certificate subject. Must not be null.
        issuer - Certificate issuer. Must not be null.
        issueDate - Certificate issue date. Must not be null.
        expirationDate - Certificate expiration date. Must not be null.
        serialNumber - Certificate serial number. Must not be null.
        sha1Fingerprint - Certificate sha1 fingerprint. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getSubject

        public java.lang.String getSubject()
        Certificate subject.
        Returns:
        value for this field, never null.
      • getIssuer

        public java.lang.String getIssuer()
        Certificate issuer.
        Returns:
        value for this field, never null.
      • getIssueDate

        public java.lang.String getIssueDate()
        Certificate issue date.
        Returns:
        value for this field, never null.
      • getExpirationDate

        public java.lang.String getExpirationDate()
        Certificate expiration date.
        Returns:
        value for this field, never null.
      • getSerialNumber

        public java.lang.String getSerialNumber()
        Certificate serial number.
        Returns:
        value for this field, never null.
      • getSha1Fingerprint

        public java.lang.String getSha1Fingerprint()
        Certificate sha1 fingerprint.
        Returns:
        value for this field, never null.
      • getCommonName

        public java.lang.String getCommonName()
        Certificate common name.
        Returns:
        value for this field, or null if not present.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object