asPrimitive

fun asPrimitive(children: List<Asn1Element>, tag: ULong, tagClass: TagClass = TagClass.UNIVERSAL, sortChildren: Boolean = false, shouldBeSorted: Boolean = false): Asn1CustomStructure(source)

ASN.1 Structure encoded as an ASN.1 Primitive (similar to OCTET STRING containing a valid ASN.1 Structure) with custom tag

Parameters

children

the elements to put into this sequence

tag

the custom tag to use

tagClass

the tag class to use for this custom tag. defaults to TagClass.UNIVERSAL

sortChildren

whether to sort the passed child nodes. defaults to false