type

Asn

src const class Asn : Obj

Asn provides utilities for creating AsnObj.

fields

Null

Singleton for universal Null

methods

asnEnum

Convenience to create a universal Enumerated value

bits

Convenience to create a universal Bit String

bool

Convenience to create a universal Boolean

genTime

Convenience to create a universal GeneralizedTime

int

Convenience to create a universal Integer.

octets

Convenience to create a universal Octet String

oid

Create an ASN.1 Object Identifier value (OID).

seq

Convenience to create a universal SEQUENCE

set

Convenience to create a universal SET

str

Convenience to create one of the ASN.1 string types.

tag

Create an object builder and add the given tag if it is not null.

utc

Convenience to create a universal UTCTime

utf8

Convenience to create a universal Utf8String

Slot Details

Null

src const static AsnObj Null := AsnObj.<ctor>([AsnTag.univNull], null)

Singleton for universal Null

asnEnum

src static AsnObj asnEnum(Int val)

Convenience to create a universal Enumerated value

bits

src static AsnObj bits(Buf bits)

Convenience to create a universal Bit String

See AsnObjBuilder.bits

bool

src static AsnObj bool(Bool val)

Convenience to create a universal Boolean

genTime

src static AsnObj genTime(DateTime ts)

Convenience to create a universal GeneralizedTime

int

src static AsnObj int(Obj val)

Convenience to create a universal Integer.

See AsnObjBuilder.int

octets

src static AsnObj octets(Obj val)

Convenience to create a universal Octet String

See AsnObjBuilder.octets

oid

src static AsnOid oid(Obj val)

Create an ASN.1 Object Identifier value (OID).

See AsnObjBuilder.oid

seq

src static AsnSeq seq(Obj items)

Convenience to create a universal SEQUENCE

See AsnObjBuilder.seq

set

src static AsnSet set(Obj items)

Convenience to create a universal SET

The items parameter may be any of the values accepted by seq.

str

src static AsnObj str(Str val, AsnTag univ)

Convenience to create one of the ASN.1 string types.

See AsnObjBuilder.str

See utf8 to easily create UTF-8 strings.

tag

src static AsnObjBuilder tag(AsnTag? tag)

Create an object builder and add the given tag if it is not null.

utc

src static AsnObj utc(DateTime ts)

Convenience to create a universal UTCTime

utf8

src static AsnObj utf8(Str val)

Convenience to create a universal Utf8String