RicalCertificateInfo

data class RicalCertificateInfo(val certificate: X509Cert, val serialNumber: ByteString = certificate.serialNumber.toUnsignedByteString(), val ski: ByteString = ByteString(certificate.subjectKeyIdentifier!!), val type: String? = null, val trustConstraints: List<RicalTrustConstraint> = emptyList(), val name: String? = null, val issuingCountry: String? = certificate.subject.countryName, val stateOrProvinceName: String? = certificate.subject.stateOrProvinceName, val issuer: ByteString? = certificate.encodedIssuer, val subject: ByteString? = certificate.encodedSubject, val notBefore: Instant? = certificate.validityNotBefore, val notAfter: Instant? = certificate.validityNotAfter, val extensions: Map<String, DataItem> = emptyMap())

An entry in a RICAL according to ISO/IEC 18013-5 Second Edition Annex F.

Constructors

Link copied to clipboard
constructor(certificate: X509Cert, serialNumber: ByteString = certificate.serialNumber.toUnsignedByteString(), ski: ByteString = ByteString(certificate.subjectKeyIdentifier!!), type: String? = null, trustConstraints: List<RicalTrustConstraint> = emptyList(), name: String? = null, issuingCountry: String? = certificate.subject.countryName, stateOrProvinceName: String? = certificate.subject.stateOrProvinceName, issuer: ByteString? = certificate.encodedIssuer, subject: ByteString? = certificate.encodedSubject, notBefore: Instant? = certificate.validityNotBefore, notAfter: Instant? = certificate.validityNotAfter, extensions: Map<String, DataItem> = emptyMap())

Properties

Link copied to clipboard

the X.509 CA certificate.

Link copied to clipboard

proprietary extensions, if available.

Link copied to clipboard
val issuer: ByteString?

DER-encoded X.500 Issuer field of the certificate, if included in the RICAL entry.

Link copied to clipboard

ISO3166-1 or ISO3166-2 country of the CA or null.

Link copied to clipboard
val name: String?

a human-readable name of the CA, if available.

Link copied to clipboard

notAfter validity timestamp of the certificate, if included in the RICAL entry.

Link copied to clipboard

notBefore validity timestamp of the certificate, if included in the RICAL entry.

Link copied to clipboard
val serialNumber: ByteString

the unsigned big-endian bytes of the certificate's serial number.

Link copied to clipboard
val ski: ByteString

the Subject Key Identifier of the X.509 certificate.

Link copied to clipboard

state or province name of the CA or null.

Link copied to clipboard
val subject: ByteString?

DER-encoded X.500 Subject field of the certificate, if included in the RICAL entry.

Link copied to clipboard
Link copied to clipboard
val type: String?

collision-resistant identifier for the type of the certificate, if available.