X500AttributeTypeAndValue

@Serializable
data class X500AttributeTypeAndValue(val oid: ObjectIdentifier, val value: Asn1Element) : Identifiable(source)

As per RFC5280:

    AttributeTypeAndValue ::= SEQUENCE {
type AttributeType,
value AttributeValue }

AttributeType ::= OBJECT IDENTIFIER

AttributeValue ::= ANY -- DEFINED BY AttributeType

DirectoryString ::= CHOICE {
teletexString TeletexString (SIZE (1..MAX)),
printableString PrintableString (SIZE (1..MAX)),
universalString UniversalString (SIZE (1..MAX)),
utf8String UTF8String (SIZE (1..MAX)),
bmpString BMPString (SIZE (1..MAX)) }

The Name describes a hierarchical name composed of attribute types, such as "country name", and corresponding values, such as "US". The type of the component AttributeValue is determined by the AttributeType; in general it will be a DirectoryString.

Constructors

Link copied to clipboard
constructor(oid: ObjectIdentifier, value: Asn1Element)
constructor(oid: ObjectIdentifier, str: Asn1String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val oid: ObjectIdentifier
Link copied to clipboard

Functions

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