Asn1Tag

annotation class Asn1Tag(val tagNumber: ULong, val tagClass: Asn1Tag.Class = Class.CONTEXT_SPECIFIC, val constructed: Asn1Tag.ConstructedBit = Asn1Tag.ConstructedBit.INFER)(source)

ASN.1 implicit tag override annotation.

This annotation only controls tag override behavior. Use Asn1BitString for additional ASN.1 semantics.

On regular serializable classes, apply it either to a class or to a property. On Kotlin inline/value classes, apply it to the inline/value class declaration itself. Applying @Asn1Tag to the single backing property of an inline/value class is rejected, because that property has no distinct ASN.1 field boundary after inline unwrapping.

Parameters

tagNumber

implicit ASN.1 tag number override

tagClass

implicit ASN.1 tag-class override; defaults to Asn1Tag.Class.CONTEXT_SPECIFIC while Asn1Tag.Class.INFER keeps underlying class

constructed

implicit ASN.1 constructed-bit override; Asn1Tag.ConstructedBit.INFER keeps underlying form

Types

Link copied to clipboard

ASN.1 tag-class override domain for Asn1Tag.

Link copied to clipboard

Properties

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