Class Certificate


public class Certificate extends NativeObject

A X.509 certificate

  • Method Details

    • getSubjectName

      public String getSubjectName()

      The name (subject) of the certificate (Getter)

      The common name (CN) of the person or authority that owns the certificate.
    • getSubject

      public String getSubject()

      The subject of the certificate (Getter)

      The distinguished name (DN) of the person or authority that owns the certificate. Formatted according to RFC 4514.
    • getIssuerName

      public String getIssuerName()

      The name of the certificate's issuer (CA) (Getter)

      The common name (CN) of the certificate authority (CA) that issued the certificate.
    • getNotAfter

      public OffsetDateTime getNotAfter()

      The date after which the certificate is no longer valid. (Getter)

    • getNotBefore

      public OffsetDateTime getNotBefore()

      The date on which the certificate becomes valid. (Getter)

    • getFingerprint

      public String getFingerprint()

      The certificate's fingerprint (Getter)

      The hex string representation of the certificate’s SHA-1 digest.
    • getRawData

      public byte[] getRawData()

      The raw data of the certificate as a byte array (Getter)

    • getSource

      public EnumSet<DataSource> getSource()

      Source of the certificate (Getter)

    • getValidity

      public ConstraintResult getValidity()

      Whether the certificate is valid according to the validation profile used (Getter)