Skip to main content

Attribute

Represents the Attribute structure

Extends

Extended by

Constructors

new Attribute()

new Attribute(type, values?): Attribute

Crates a new instance

Parameters

type: string

Attribute identifier

values?: BufferSource[]

List of DER encoded attribute values

Returns

Attribute

Overrides

AsnData.constructor

new Attribute()

new Attribute(raw): Attribute

Crates a new instance from DER encoded buffer

Parameters

raw: BufferSource

DER encoded buffer

Returns

Attribute

Overrides

AsnData.constructor

Properties

rawData

readonly rawData: ArrayBuffer

Gets a DER encoded buffer

Inherited from

AsnData.rawData


type

type: string

Gets an attribute identifier


values

values: ArrayBuffer[]

Gets a list of DER encoded attribute values


NAME

static NAME: string = "Attribute"

Overrides

AsnData.NAME

Methods

equal()

equal(data): data is Attribute

Returns true if ASN.1 data is equal to another ASN.1 data, otherwise false

Parameters

data: any

Any data

Returns

data is Attribute

Inherited from

AsnData.equal


getTextName()

protected getTextName(): string

Returns

string

Inherited from

AsnData.getTextName


onInit()

protected onInit(asn): void

Occurs on instance initialization

Parameters

asn: Attribute

ASN.1 object

Returns

void

Overrides

AsnData.onInit


toString()

toString(format): string

Returns a string representation of an object.

Parameters

format: AsnDataStringFormat = "text"

Returns

string

Inherited from

AsnData.toString


toTextObject()

toTextObject(): TextObject

Returns the object in textual representation

Returns

TextObject

Overrides

AsnData.toTextObject


toTextObjectEmpty()

protected toTextObjectEmpty(value?): TextObject

Parameters

value?: string

Returns

TextObject

Inherited from

AsnData.toTextObjectEmpty


toTextObjectWithoutValue()

toTextObjectWithoutValue(): TextObject

Returns

TextObject