X509GeneralName

@Serializable
sealed interface X509GeneralName(source)

The RFC 5280 GeneralName CHOICE.

Closed alternatives are decoded as strict typed values. The open otherName arm delegates its payload to an OID-selected X509GeneralName.Other.SemanticValue implementation.

In general, if the tag matches and the ASN1 element type is correct, it will leniently decode where this makes sense, such as X509GeneralName.Rfc822, or other string-based ones.

Inheritors

Types

Link copied to clipboard
@Serializable
value class Directory : X509GeneralName

The explicitly tagged directoryName GeneralName alternative. Trying to parse a structurally malformed input will fail.

Link copied to clipboard
@Serializable
value class Dns : X509GeneralName

Will be parsed leniently: Any valid ASN.1 String type will initially decode; validation is deferred to the getter of value.

Link copied to clipboard
@Serializable
value class EdiParty(elements: List<Asn1Element>) : X509GeneralName

Trying to parse a structurally malformed input will fail.

Link copied to clipboard
@Serializable
value class IpAddress : X509GeneralName

Will be parsed leniently: Any valid ASN.1 OCTET STRING will initially decode; validation is deferred to the getter of value.

Link copied to clipboard

The [0] GeneralName arm containing an open SemanticValue value. Trying to parse a structurally malformed input will fail.

Link copied to clipboard
@Serializable
value class RegisteredId(val oid: ObjectIdentifier) : X509GeneralName

Trying to parse a structurally malformed input will fail.

Link copied to clipboard
@Serializable
value class Rfc822 : X509GeneralName

Will be parsed leniently: Any valid ASN.1 String type will initially decode; validation is deferred to the getter of value.

Link copied to clipboard
object Tags

Context-specific tags for RFC 5280 GeneralName alternatives. Handy for manually sifting through an X509GeneralName structure.

Link copied to clipboard

Will be parsed leniently: Any valid ASN.1 String type will initially decode; validation is deferred to the getter of value.

Link copied to clipboard
@Serializable
value class X400Address(val elements: List<Asn1Element>) : X509GeneralName

Trying to parse a structurally malformed input will fail.