X509Certificate

data class X509Certificate : PemEncodable<Asn1Sequence> (source)

Very simple implementation of an X.509 Certificate

Constructors

Link copied to clipboard
constructor(tbsCertificate: TbsCertificate, signatureAlgorithm: X509SignatureAlgorithmDescription, rawSignature: Asn1Primitive)
constructor(tbsCertificate: TbsCertificate, signatureAlgorithm: X509SignatureAlgorithmDescription, signature: CryptoSignature)

Types

Link copied to clipboard
object Companion : PemDecodable<Asn1Sequence, X509Certificate>

Properties

Link copied to clipboard
open override val canonicalPEMBoundary: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rawPublicKey: Asn1Sequence
Link copied to clipboard
val rawSignature: Asn1Primitive
Link copied to clipboard
val rawSignatureAlgorithm: Asn1Sequence
Link copied to clipboard
val rawTbsCertificate: Asn1Sequence
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
open override fun encodeToTlv(): Asn1Sequence
Link copied to clipboard
open fun encodeToTlvOrNull(): Asn1Sequence?
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>
Link copied to clipboard
Link copied to clipboard
suspend fun X509Certificate.toJcaCertificate(): ERROR CLASS: Symbol not found for KmmResult<java/security/cert/X509Certificate>

Converts this X509Certificate to a java.security.cert.X509Certificate. This function is suspending, because it uses a mutex to lock the underlying certificate factory (which is reused for performance reasons

Link copied to clipboard
fun X509Certificate.toJcaCertificateBlocking(): ERROR CLASS: Symbol not found for KmmResult<java/security/cert/X509Certificate>

blocking implementation of toJcaCertificate

Link copied to clipboard
open override fun toString(): String

Debug String representation. Uses Base64 encoded DER representation

Link copied to clipboard
open infix fun withImplicitTag(tag: Asn1Element.Tag): Asn1Element
open infix fun withImplicitTag(template: Asn1Element.Tag.Template): Asn1Element
open infix fun withImplicitTag(tagValue: ULong): Asn1Element