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)
}
}
Content copied to clipboard
Functions
Link copied to clipboard
appends a single Asn1Element to this ASN.1 structure
appends a single Asn1Encodable to this ASN.1 structure