X509CertificateData

class X509CertificateData(val publicKey: PublicKey?, val issuerCn: String?, val issuerDn: String?, val subjectCn: String?, val subjectDn: String?, val serialNumber: String?, val isSelfSigned: Boolean? = false, val isCaCertificate: Boolean? = false, val validFrom: Date?, val validUntil: Date?)

Provides metadata of signing certificate

Constructors

Link copied to clipboard
constructor(publicKey: PublicKey?, issuerCn: String?, issuerDn: String?, subjectCn: String?, subjectDn: String?, serialNumber: String?, isSelfSigned: Boolean? = false, isCaCertificate: Boolean? = false, validFrom: Date?, validUntil: Date?)

Properties

Link copied to clipboard
val isCaCertificate: Boolean? = false

Returns true if the certificate is a CA certificate, false otherwise.

Link copied to clipboard
val isSelfSigned: Boolean? = false

Returns true if the certificate is self-signed, false otherwise.

Link copied to clipboard

The issuer's CN (common name).

Link copied to clipboard

The issuer's DN (distinguished name).

Link copied to clipboard

Certificate's public key.

Link copied to clipboard

The certificate's serial number.

Link copied to clipboard

The subject's CN (common name).

Link copied to clipboard

The subject's DN (distinguished name).

Link copied to clipboard

Returns the "valid_from" date of this certificate. Before this date the certificate is not valid.

Link copied to clipboard

Returns the "valid_until" date of this certificate. After this date the certificate is not valid.