Types

Link copied to clipboard
@Serializable
@SerialName(value = "CN")
class CommonName(val value: Asn1Element) : AttributeTypeAndValue
Link copied to clipboard
@Serializable
@SerialName(value = "C")
class Country(val value: Asn1Element) : AttributeTypeAndValue
Link copied to clipboard
@Serializable
@SerialName(value = "O")
class Organization(val value: Asn1Element) : AttributeTypeAndValue
Link copied to clipboard
@Serializable
@SerialName(value = "OU")
class OrganizationalUnit(val value: Asn1Element) : AttributeTypeAndValue
Link copied to clipboard
@Serializable
@SerialName(value = "?")
class Other(val oid: ObjectIdentifier, val value: Asn1Element) : AttributeTypeAndValue

Properties

Link copied to clipboard
abstract val oid: ObjectIdentifier
Link copied to clipboard
abstract val value: Asn1Element

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
open override fun toString(): String