const class asn1::AsnObj

sys::Obj
  asn1::AsnObj

Source

A tagged ASN.1 value

bigInt

BigInt bigInt()

Source

Get the value as a BigInt.

bool

Bool bool()

Source

Get the value as a Bool

buf

virtual Buf buf()

Source

Get any of the binary values as a Buf. The Buf will be a safe copy that can be modified. Throws AsnErr if the value is not a binary value.

coll

AsnColl coll()

Source

Get this object as an AsnColl

effectiveTags

AsnTag[] effectiveTags()

Source

Apply rules for EXPLICIT and IMPLICIT tags to obtain the set of effective tags for encoding this object.

equals

override Bool equals(Obj? obj)

Source

hash

override Int hash()

Source

int

Int int()

Source

Get the value as an Int. If the value is a BigInt you may lose both precision and sign. Use bigInt to get the value explicitly as a BigInt.

isBool

Bool isBool()

Source

Is this object's universal tag a Boolean

isInt

Bool isInt()

Source

Is this object's universal tag an Integer

isNull

Bool isNull()

Source

Is this an ASN.1 Null value

isOcts

Bool isOcts()

Source

Is this object's universal tag an Octet String

isOid

Bool isOid()

Source

Is this object's universal tag an Object Identifier

isPrimitive

Bool isPrimitive()

Source

Is this a primitive type?

make

new make(AsnTag[] tags, Obj? val)

Source

oid

AsnOid oid()

Source

Get this object as an AsnOid

push

virtual AsnObj push(AsnTag tag)

Source

Push a tag to the front of the tag chain for this value. Returns a new instance of this object with the current value.

AsnObj.int(123).tag(AsnTag.implicit(TagClass.context, 0))
  => [0] IMPLICIT [UNIVERSAL 2]
AsnObj.int(123).tag(AsnTag.explicit(TagClass.app, 1))
  => [APPLICATION 1] EXPLICIT [UNIVERSAL 2]
seq

AsnSeq seq()

Source

Get this object as an AsnSeq

str

Str str()

Source

Get the value as a Str

tag

AsnTag tag()

Source

Get the single effective tag for this object. Throws an error if there are multiple effective tags

tags

const AsnTag[] tags

Source

The tags for this object.

toStr

virtual override Str toStr()

Source

ts

DateTime ts()

Source

Get the value as a DateTime timestamp

univTag

AsnTag univTag()

Source

Get the univ tag for this object

val

const Obj? val

Source

The value for this object.

valEquals

protected virtual Bool valEquals(AsnObj that)

Source

valHash

protected virtual Int valHash()

Source

valStr

protected virtual Str valStr()

Source