X509Certificate

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

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
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

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
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

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