X509SignedBuilder

sealed class X509SignedBuilder<BuilderT : X509SignedBuilder<BuilderT>>(val signingKey: AsymmetricKey, val issuer: X500Name)

Base builder class for X509 signed sequences (certificates and CRLs).

Parameters

signingKey

key that is used to sign the sequence

issuer

the issuer of the certificate or CRL

Inheritors

Constructors

Link copied to clipboard
protected constructor(signingKey: AsymmetricKey, issuer: X500Name)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
protected abstract val extensionTag: Int
Link copied to clipboard
Link copied to clipboard
protected abstract val self: BuilderT
Link copied to clipboard

Functions

Link copied to clipboard

Adds an X.509 extension to the certificate or CRL.

fun addExtension(oid: String, critical: Boolean, value: ByteArray): BuilderT
fun addExtension(oid: String, critical: Boolean, value: ByteString): BuilderT

Adds an X.509 extension to the certificate or CRL

Link copied to clipboard
protected suspend fun buildASN1(): ASN1Sequence

Builds three-element ASN1Sequence that contains TBS ASN1Sequence, signature algorithm and the signature.

Link copied to clipboard
protected abstract suspend fun buildTbs(tbsList: MutableList<ASN1Object>)

Adds the to-be-signed structure to tbsList.