Class Certificate


public class Certificate extends NativeObject

A X.509 certificate

  • Method Details

    • getName

      public String getName()

      The name (subject) of the certificate (Getter)

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

      public String getSubject()

      The subject of the certificate (Getter)

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

      public String getIssuer()

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

      The common name (CN) of the certificate authority (CA) who issued the certificate.
    • getFingerprint

      public String getFingerprint()

      The certificate's fingerprint (Getter)

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

      public boolean getHasPrivateKey()

      Whether the cryptographic provider has a private key for the certificate. (Getter)

      Note that whether the private key is found and whether it can actually be used for signing may depend on the provider's login state.