Package com.pdftools.crypto.providers
Class Certificate
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.crypto.providers.Certificate
A X.509 certificate
-
Method Summary
Modifier and TypeMethodDescriptionThe certificate's fingerprint (Getter)booleanWhether the cryptographic provider has a private key for the certificate.The name of the certificate's issuer (CA) (Getter)getName()The name (subject) of the certificate (Getter)The subject of the certificate (Getter)Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
getName
The name (subject) of the certificate (Getter)
The common name (CN) of the person or authority who owns the certificate. -
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
The name of the certificate's issuer (CA) (Getter)
The common name (CN) of the certificate authority (CA) who issued the certificate. -
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.
-