VicalCertificateInfo

data class VicalCertificateInfo(val certificate: X509Cert, val docTypes: List<String>, val serialNumber: ByteString = certificate.serialNumber.toUnsignedByteString(), val ski: ByteString = ByteString(certificate.subjectKeyIdentifier!!), val certificateProfiles: List<String>? = null, val issuingAuthority: 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 VICAL according to ISO/IEC 18013-5 Annex C.

Constructors

Link copied to clipboard
constructor(certificate: X509Cert, docTypes: List<String>, serialNumber: ByteString = certificate.serialNumber.toUnsignedByteString(), ski: ByteString = ByteString(certificate.subjectKeyIdentifier!!), certificateProfiles: List<String>? = null, issuingAuthority: 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 certificate.

Link copied to clipboard

list of Uniform Resource Name (URN) according to RFC 8141, if available.

Link copied to clipboard

a list of document types for which the certificate may be used as a trust point, contains at least one element.

Link copied to clipboard

proprietary extensions. Added in 18013-5 Second Edition.

Link copied to clipboard
val issuer: ByteString?

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

Link copied to clipboard

name of Issuing Authority or null.

Link copied to clipboard

ISO3166-1 or ISO3166-2 depending on the issuing authority or null.

Link copied to clipboard

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

Link copied to clipboard

notBefore validity timestamp of the certificate, if included in the VICAL 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 certificate issuing authority or null.

Link copied to clipboard
val subject: ByteString?

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