X509CertChain

data class X509CertChain(val certificates: List<X509Cert>)

A chain of certificates.

Parameters

certificates

the certificates in the chain.

Constructors

Link copied to clipboard
constructor(certificates: List<X509Cert>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val X509CertChain.javaX509Certificates: List<ERROR CLASS: Symbol not found for X509Certificate>

Converts the certificate chain to a list of Java X.509 certificates.

Functions

Link copied to clipboard
fun toCoseX5Chain(excludeRoot: Boolean = true): DataItem

Encodes the certificate chain as CBOR for use in COSE 'x5chain' header parameter (label 33) according to RFC 9360 Section 2.

Link copied to clipboard

Encodes the certificate chain as CBOR.

Link copied to clipboard
fun toX5c(excludeRoot: Boolean = true): JsonElement

Encodes the certificate chain as JSON Array according to RFC 7515 Section 4.1.6.

Link copied to clipboard
suspend fun validate(validateAt: Instant = Clock.System.now(), requireBasicConstraints: Boolean = true, validateValidity: Boolean = true, validateCaValidity: Boolean = true)

Performs basic certificate chain validation.