X509CertificateExtension

@Serializable
data class X509CertificateExtension : Identifiable(source)

As per RFC5280:

Extension  ::=  SEQUENCE  {
extnID OBJECT IDENTIFIER,
critical BOOLEAN DEFAULT FALSE,
extnValue OCTET STRING
-- contains the DER encoding of an ASN.1 value
-- corresponding to the extension type identified
-- by extnID
}

Constructors

Link copied to clipboard
constructor(oid: ObjectIdentifier, critical: Boolean = false, value: ByteArray)
constructor(oid: ObjectIdentifier, critical: Boolean = false, value: Asn1OctetString)

Properties

Link copied to clipboard

Sensible interpretation of rawCritical:

Link copied to clipboard
open override val oid: ObjectIdentifier
Link copied to clipboard

Some production certificates have illegal boolean encoding, as in: correct tag, correct length, containing a single byte that is neither 0x00 nor 0xFF. X509CertificateExtension treats those as follows:

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int