Package com.pdftools.crypto.providers
Class Certificate
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.crypto.providers.Certificate
-
public class Certificate extends NativeObject
A X.509 certificate
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFingerprint()
The certificate's fingerprint (Getter)boolean
getHasPrivateKey()
Whether the cryptographic provider has a private key for the certificate.java.lang.String
getIssuer()
The name of the certificate's issuer (CA) (Getter)java.lang.String
getName()
The name (subject) of the certificate (Getter)java.lang.String
getSubject()
The subject of the certificate (Getter)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name (subject) of the certificate (Getter)
The common name (CN) of the person or authority who owns the certificate.
-
getSubject
public java.lang.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 java.lang.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 java.lang.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.
-
-