ASN1Value

Implements ASN1Encodable.

Represents an ASN.1 value with encoded contents.

Constructor

function constructor(
	asn1Class: ASN1Class,
	form: ASN1Form,
	tag: number,
	contents: Uint8Array
): this;

Parameters

  • asn1Class
  • form
  • tag
  • contents

Methods

Properties

interface Properties {
	class: ASN1Class;
	form: ASN1Form;
	tag: number;
}
  • class
  • form
  • tag

Example

const sequence = new ASN1Value(ASN1Class.Universal, ASN1Form.Constructed, 16, contents).sequence();
const oid = sequence.at(0).objectIdentifier();