Skip to main content

GeneralNames

Represents an ASN.1 data

Extends

Constructors

new GeneralNames()

new GeneralNames(json): GeneralNames

Parameters

json: JsonGeneralNames

Returns

GeneralNames

Overrides

AsnData.constructor

new GeneralNames()

new GeneralNames(asn): GeneralNames

Parameters

asn: GeneralNames | GeneralName[]

Returns

GeneralNames

Overrides

AsnData.constructor

new GeneralNames()

new GeneralNames(raw): GeneralNames

Parameters

raw: BufferSource

Returns

GeneralNames

Overrides

AsnData<asn1X509.GeneralNames>.constructor

Properties

items

items: readonly GeneralName[]


rawData

readonly rawData: ArrayBuffer

Gets a DER encoded buffer

Inherited from

AsnData.rawData


NAME

static NAME: string = "GeneralNames"

Overrides

AsnData.NAME

Methods

equal()

equal(data): data is GeneralNames

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

Parameters

data: any

Any data

Returns

data is GeneralNames

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: GeneralNames

ASN.1 object

Returns

void

Overrides

AsnData.onInit


toJSON()

toJSON(): JsonGeneralNames

Returns

JsonGeneralNames


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