Asn1IntegerDecimalStringSerializer

String serializer for Asn1Integer.

Intended as a non-DER fallback representation for generic formats such as JSON. When used with the awesn1.kxs DER format, this serializer is bypassed and native INTEGER DER TLV encoding/decoding is used.

Serialization uses Asn1Integer.toDecimalString/Asn1Integer.fromDecimalString. These functions are length limited. The limits used by this serializer can be overridden (globally) using decodingLimit/encodingLimit. This only affects string serialization for non-DER formats.

Properties

Link copied to clipboard

maximum size (characters) for decoding. can only be increased, not decreased.

Link copied to clipboard
open override val descriptor: SerialDescriptor
Link copied to clipboard

maximum size (bytes) for encoding. can only be increased, not decreased.

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Asn1Integer
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Asn1Integer)