Skip to main content

AuthorityKeyIdentifierExtension

Represents the Authority Key Identifier certificate extension

Extends​

Constructors​

Constructor​

new AuthorityKeyIdentifierExtension(raw, options?): AuthorityKeyIdentifierExtension

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​

AuthorityKeyIdentifierExtension

Overrides​

Extension.constructor

Constructor​

new AuthorityKeyIdentifierExtension(identifier, critical?): AuthorityKeyIdentifierExtension

Creates a new instance

Parameters​

identifier​

string

Hexadecimal representation of key identifier

critical?​

boolean

Indicates where extension is critical. Default is false

Returns​

AuthorityKeyIdentifierExtension

Overrides​

Extension.constructor

Constructor​

new AuthorityKeyIdentifierExtension(id, critical?): AuthorityKeyIdentifierExtension

Creates a new instance

Parameters​

id​

CertificateIdentifier

Certificate identifier in the issuer name and serial number

critical?​

boolean

Indicates where extension is critical. Default is false

Returns​

AuthorityKeyIdentifierExtension

Overrides​

Extension.constructor

Properties​

asn​

protected readonly asn: AsnExtension

ASN.1 object

Inherited from​

Extension.asn


certId?​

optional certId: CertificateIdentifier

Gets a certificate identifier in the issuer name and serial number


critical​

critical: boolean

Indicates where extension is critical

Inherited from​

Extension.critical


keyId?​

optional keyId: string

Gets a hexadecimal representation of key identifier


type​

type: string

Gets an extension identifier

Inherited from​

Extension.type


value​

value: ArrayBuffer

Gets a DER encoded value of extension

Inherited from​

Extension.value


NAME​

static NAME: string = "Authority Key Identifier"

Overrides​

Extension.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 AuthorityKeyIdentifierExtension

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

Parameters​

data​

any

Any data

Returns​

data is AuthorityKeyIdentifierExtension

Inherited from​

Extension.equal


getTextName()​

protected getTextName(): string

Returns​

string

Inherited from​

Extension.getTextName


onInit()​

protected onInit(asn): void

Occurs on instance initialization

Parameters​

asn​

Extension

ASN.1 object

Returns​

void

Overrides​

Extension.onInit


toString()​

toString(format): string

Returns a string representation of an object.

Parameters​

format​

AsnDataStringFormat = "text"

Returns​

string

Inherited from​

Extension.toString


toTextObject()​

toTextObject(): TextObject

Returns the object in textual representation

Returns​

TextObject

Overrides​

Extension.toTextObject


toTextObjectEmpty()​

protected toTextObjectEmpty(value?): TextObject

Parameters​

value?​

string

Returns​

TextObject

Inherited from​

Extension.toTextObjectEmpty


toTextObjectWithoutValue()​

toTextObjectWithoutValue(): TextObject

Returns​

TextObject

Inherited from​

Extension.toTextObjectWithoutValue


create()​

Call Signature​

static create(certId, critical?, crypto?): Promise<AuthorityKeyIdentifierExtension>

Creates authority key identifier extension from certificate identifier

Parameters​
certId​

CertificateIdentifier

Certificate identifier

critical?​

boolean

Indicates where extension is critical. Default is false

crypto?​

Crypto

WebCrypto provider. Default is from CryptoProvider

Returns​

Promise<AuthorityKeyIdentifierExtension>

Call Signature​

static create(publicKey, critical?, crypto?): Promise<AuthorityKeyIdentifierExtension>

Creates authority key identifier extension from public key data

Parameters​
publicKey​

PublicKeyType

Public key data

critical?​

boolean

Indicates where extension is critical. Default is false

crypto?​

Crypto

WebCrypto provider. Default is from CryptoProvider

Returns​

Promise<AuthorityKeyIdentifierExtension>