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

        @Nonnull
        protected final java.lang.String subject
      • issuer

        @Nonnull
        protected final java.lang.String issuer
      • issueDate

        @Nonnull
        protected final java.lang.String issueDate
      • expirationDate

        @Nonnull
        protected final java.lang.String expirationDate
      • serialNumber

        @Nonnull
        protected final java.lang.String serialNumber
      • sha1Fingerprint

        @Nonnull
        protected final java.lang.String sha1Fingerprint
      • commonName

        @Nullable
        protected final java.lang.String commonName
    • Constructor Detail

      • Certificate

        public Certificate​(@Nonnull
                           java.lang.String subject,
                           @Nonnull
                           java.lang.String issuer,
                           @Nonnull
                           java.lang.String issueDate,
                           @Nonnull
                           java.lang.String expirationDate,
                           @Nonnull
                           java.lang.String serialNumber,
                           @Nonnull
                           java.lang.String sha1Fingerprint,
                           @Nullable
                           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​(@Nonnull
                           java.lang.String subject,
                           @Nonnull
                           java.lang.String issuer,
                           @Nonnull
                           java.lang.String issueDate,
                           @Nonnull
                           java.lang.String expirationDate,
                           @Nonnull
                           java.lang.String serialNumber,
                           @Nonnull
                           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

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

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

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

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

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

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

        @Nullable
        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