Package com.pspdfkit.signatures
Class X509CertificateData
-
- All Implemented Interfaces:
public final class X509CertificateData
Provides metadata of signing certificate
-
-
Field Summary
Fields Modifier and Type Field Description private final PublicKey
publicKey
private final String
issuerCn
private final String
issuerDn
private final String
subjectCn
private final String
subjectDn
private final String
serialNumber
private final Boolean
isSelfSigned
private final Boolean
isCaCertificate
private final Date
validFrom
private final Date
validUntil
-
Method Summary
Modifier and Type Method Description final PublicKey
getPublicKey()
Certificate's public key. final String
getIssuerCn()
The issuer's CN (common name). final String
getIssuerDn()
The issuer's DN (distinguished name). final String
getSubjectCn()
The subject's CN (common name). final String
getSubjectDn()
The subject's DN (distinguished name). final String
getSerialNumber()
The certificate's serial number. final Boolean
isSelfSigned()
Returns true if the certificate is self-signed, false otherwise. final Boolean
isCaCertificate()
Returns true if the certificate is a CA certificate, false otherwise. final Date
getValidFrom()
Returns the "valid_from" date of this certificate. final Date
getValidUntil()
Returns the "valid_until" date of this certificate. -
-
Method Detail
-
getPublicKey
final PublicKey getPublicKey()
Certificate's public key.
-
getIssuerCn
final String getIssuerCn()
The issuer's CN (common name).
-
getIssuerDn
final String getIssuerDn()
The issuer's DN (distinguished name).
-
getSubjectCn
final String getSubjectCn()
The subject's CN (common name).
-
getSubjectDn
final String getSubjectDn()
The subject's DN (distinguished name).
-
getSerialNumber
final String getSerialNumber()
The certificate's serial number.
-
isSelfSigned
final Boolean isSelfSigned()
Returns true if the certificate is self-signed, false otherwise.
-
isCaCertificate
final Boolean isCaCertificate()
Returns true if the certificate is a CA certificate, false otherwise.
-
getValidFrom
final Date getValidFrom()
Returns the "valid_from" date of this certificate. Before this date the certificate is not valid.
-
getValidUntil
final Date getValidUntil()
Returns the "valid_until" date of this certificate. After this date the certificate is not valid.
-
-
-
-