class asn1::AsnObjBuilder
sys::Obj asn1::AsnObjBuilder
Utility to build an AsnObj
- asnEnum
-
Build an ASN.1
Enumeratedvalue. - asnNull
-
AsnObj asnNull()Build an ASN.1
Nullvalue - bits
-
Build an ASN.1
Bit Stringvalue. The bits in the bit string are numbered from left to right. For example, bits0-7are in the first byte of the bits buffer. - bool
-
Build an ASN.1
Booleanvalue - genTime
-
Build an ASN.1
GeneralizedTimevalue. - int
-
Build an ASN.1
Integervalue. Thevalmay be either anIntor aBigInt, but is always normalized toBigInt. - make
-
new make() - octets
-
Build an ASN.1
Octet Stringvalue. Thevalmay be:- a
Str- it will be converted to a Buf as((Str)val).toBuf - a
Bufcontaining the raw octets
- a
- oid
-
Build an ASN.1
Object Identifiervalue (OID). Thevalmay be:- an
Int[]where each element of the list is a part of the oid. - a
Strwhere each part of the oid is separated by..
Asn.oid([1,2,3]) Asn.oid("1.2.3") - an
- seq
-
Build an ASN.1
SEQUENCEvalue Theitemsparameter may be:- An
AsnItem[]of raw items to add to the collection - An
AsnObj[] - A
Str:AsnObj- if the order of the sequence is important, you should ensure the map is ordered.
- An
- set
-
Create an ASN.1
SETvalue Theitemsparameter may be any of the values accepted byseq. - str
-
AsnObj str(Str val, AsnTag univ)Build one of the ASN.1 string types. The
univparameter must be one of:See
utf8to easily create UTF-8 strings. - tag
-
Add a tag to the object builder. Tags should be added in ther order they are specified in an ASN.1 type declaration. If the
tagisnull, then this is a no-op.Whenever a concrete
AsnObjis built, the builder will clear all tags.// [0] [1 APPLICATION] Boolean obj := AsnObjBuilder() .tag(AsnTag.context(0).implicit) .tag(AsnTag.app(1).implicit) .bool(true)
- utc
-
Build an ASN.1
UTCTimevalue - utf8
-
Build an ASN.1
Utf8Stringvalue.