X509Certificate

@Serializable
data class X509Certificate constructor(val tbsCertificate: TbsCertificate, val signatureAlgorithm: X509SignatureAlgorithm, val signature: CryptoSignature) : Asn1Encodable<Asn1Sequence> (source)

Very simple implementation of an X.509 Certificate

Constructors

Link copied to clipboard
constructor(tbsCertificate: TbsCertificate, signatureAlgorithm: X509SignatureAlgorithm, signature: CryptoSignature)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Convenience function to directly get the DER-encoded representation of the implementing object

Link copied to clipboard

Exception-free version of encodeToDer

Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>

Safe version of encodeToDer, wrapping the result into a KmmResult

Link copied to clipboard
open override fun encodeToTlv(): Asn1Sequence

Encodes the implementing object into an A

Link copied to clipboard

Exception-free version of encodeToTlv

Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>

Safe version of encodeToTlv, wrapping the result into a KmmResult

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

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

blocking implementation of toJcaCertificate