Skip to main content

Extension

Represents the certificate extension

Extends​

Extended by​

Constructors​

Constructor​

new Extension(raw, options?): Extension

Creates a new instance from DER encoded Buffer

Parameters​

raw​

BufferSource

DER encoded buffer

options?​

any

Optional ASN.1 parse options (e.g. asn1js.fromBER resource limits)

Returns​

Extension

Overrides​

AsnData.constructor

Constructor​

new Extension(type, critical, value): Extension

Creates a new instance

Parameters​

type​

string

Extension identifier

critical​

boolean

Indicates where extension is critical

value​

BufferSource

DER encoded value of extension

Returns​

Extension

Overrides​

AsnData.constructor

Properties​

asn​

protected readonly asn: AsnExtension

ASN.1 object

Inherited from​

AsnData.asn


critical​

critical: boolean

Indicates where extension is critical


type​

type: string

Gets an extension identifier


value​

value: ArrayBuffer

Gets a DER encoded value of extension


NAME​

static NAME: string = "ASN"

Inherited from​

AsnData.NAME

Accessors​

parseOptions​

Get Signature​

get protected parseOptions(): any

Gets the ASN.1 parse options the instance was created with

Returns​

any

Inherited from​

X509CrlEntry.parseOptions


rawData​

Get Signature​

get rawData(): ArrayBuffer

Gets a DER encoded buffer

Returns​

ArrayBuffer

Inherited from​

X509CrlEntry.rawData

Methods​

equal()​

equal(data): data is Extension

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

Parameters​

data​

any

Any data

Returns​

data is Extension

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​

AsnExtension

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