PrimitiveType

@Serializable(with = PrimitiveType.ByteSerializer::class)
enum PrimitiveType : Enum<PrimitiveType> (source)

Type discriminator and ASN.1 codec for Primitive values.

IDs intentionally start at 1 (not 0) to stay robust with formats that may elide default scalar values on the wire (e.g. ProtoBuf-style encodings where 0 is the default for integers). If 0 were used as a valid discriminator, it could be indistinguishable from a missing discriminator field.

Entries

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object NameSerializer : KSerializer<PrimitiveType>

Human-readable enum-name serializer used by externalised verifier configuration.

Properties

Link copied to clipboard
@Transient
val asn1Decoder: HashedAttributeDecoder
Link copied to clipboard
@Transient
val asn1Encoder: HashedAttributeEncoder
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.