DerConfiguration

data class DerConfiguration(val encodeDefaults: Boolean = true, val explicitNulls: Boolean = false, val maxInputLength: Long = UInt.MAX_VALUE.toLong(), val serializersModule: SerializersModule = EmptySerializersModule())(source)

DER format options.

Constructors

Link copied to clipboard
constructor(encodeDefaults: Boolean = true, explicitNulls: Boolean = false, maxInputLength: Long = UInt.MAX_VALUE.toLong(), serializersModule: SerializersModule = EmptySerializersModule())

Properties

Link copied to clipboard

if true, default-valued properties are encoded. If false, default-valued properties are omitted.

Link copied to clipboard

if true, nullable properties are encoded as ASN.1 NULL by default. If false, nullable null values are omitted by default. exactly as originally decoded.

Link copied to clipboard

maximum allowed total number of encoded DER bytes to consume before refusing to parse and throwing. This limit is enforced before reading or peeking from the underlying source. Defaults to UInt.MAX_VALUE.

Link copied to clipboard
val serializersModule: SerializersModule

serializers used for contextual/open-polymorphic resolution.