Asn1TreeBuilder

Class Providing a DSL for creating arbitrary ASN.1 structures. You will almost certainly never use it directly, but rather use it as follows:

Sequence {
+Tagged(1u) {
+Asn1Primitive(BERTags.BOOLEAN, byteArrayOf(0x00))
}
+Set {
+Sequence {
+SetOf {
+PrintableString("World")
+PrintableString("Hello")
}
+Set {
+PrintableString("World")
+PrintableString("Hello")
+Utf8String("!!!")
}

}
}
+Null()

+ObjectIdentifier("1.2.603.624.97")

+Utf8String("Foo")
+PrintableString("Bar")

+Set {
+Int(3)
+Long(-65789876543L)
+Bool(false)
+Bool(true)
}
+Sequence {
+Null()
+Asn1String.Numeric("12345")
+UtcTime(instant)
}
}

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
operator fun Asn1Element.unaryPlus()

appends a single Asn1Element to this ASN.1 structure

operator fun Asn1Encodable<*>.unaryPlus()

appends a single Asn1Encodable to this ASN.1 structure