Skip to main content

X509Crl

Representation of X.509 Certificate Revocation List (CRL)

Extends

  • PemData<CertificateList>

Constructors

new X509Crl()

new X509Crl(asn): X509Crl

Creates a new instance from ASN.1 CertificateList object

Parameters

asn: CertificateList

ASN.1 CertificateList object

Returns

X509Crl

Overrides

PemData<CertificateList>.constructor

new X509Crl()

new X509Crl(raw): X509Crl

Creates a new instance

Parameters

raw: AsnEncodedType

Encoded buffer (DER, PEM, HEX, Base64, Base64Url)

Returns

X509Crl

Overrides

PemData<CertificateList>.constructor

Properties

entries

entries: readonly X509CrlEntry[]

Gets a crlEntries from the CRL


extensions

extensions: Extension[]

Gts a list of crl extensions


issuer

issuer: string

Gets a string issuer name


issuerName

issuerName: Name

Gets the issuer value from the crl as an Name


nextUpdate?

optional nextUpdate: Date

Gets a nextUpdate date from the CRL


rawData

readonly rawData: ArrayBuffer

Gets a DER encoded buffer

Inherited from

PemData.rawData


signature

signature: ArrayBuffer

Gets a signature


signatureAlgorithm

signatureAlgorithm: HashedAlgorithm

Gets a signature algorithm


tag

protected readonly tag: string

PEM tag

Overrides

PemData.tag


thisUpdate

thisUpdate: Date

Gets a thisUpdate date from the CRL


version?

optional version: Version

Gets a version


NAME

static NAME: string = "ASN"

Inherited from

PemData.NAME

Methods

equal()

equal(data): data is X509Crl

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

Parameters

data: any

Any data

Returns

data is X509Crl

Inherited from

PemData.equal


findRevoked()

findRevoked(certOrSerialNumber): null | X509CrlEntry

Gets the CRL entry, with the given X509Certificate or certificate serialNumber.

Parameters

certOrSerialNumber: string | X509Certificate

certificate | serialNumber

Returns

null | X509CrlEntry


getExtension()

getExtension(type)

getExtension<T>(type): null | T

Returns an extension of specified type

Type Parameters

T extends Extension

Parameters

type: string

Extension identifier

Returns

null | T

Extension or null

getExtension(type)

getExtension<T>(type): null | T

Returns an extension of specified type

Type Parameters

T extends Extension

Parameters

type

Extension type

Returns

null | T

Extension or null


getExtensions()

Returns a list of extensions of specified type

Param

Extension identifier

getExtensions(type)

getExtensions<T>(type): T[]

Returns a list of extensions of specified type

Type Parameters

T extends Extension

Parameters

type: string

Extension identifier

Returns

T[]

Param

Extension identifier

getExtensions(type)

getExtensions<T>(type): T[]

Returns a list of extensions of specified type

Type Parameters

T extends Extension

Parameters

type

Extension type

Returns

T[]

Param

Extension identifier


getTextName()

protected getTextName(): string

Returns

string

Inherited from

PemData.getTextName


getThumbprint()

getThumbprint(crypto)

getThumbprint(crypto?): Promise<ArrayBuffer>

Returns a SHA-1 certificate thumbprint

Parameters

crypto?: Crypto

Crypto provider. Default is from CryptoProvider

Returns

Promise<ArrayBuffer>

getThumbprint(algorithm, crypto)

getThumbprint(algorithm, crypto?): Promise<ArrayBuffer>

Returns a certificate thumbprint for specified mechanism

Parameters

algorithm: AlgorithmIdentifier

Hash algorithm

crypto?: Crypto

Crypto provider. Default is from CryptoProvider

Returns

Promise<ArrayBuffer>


onInit()

protected onInit(asn): void

Occurs on instance initialization

Parameters

asn: CertificateList

ASN.1 object

Returns

void

Overrides

PemData.onInit


toString()

toString()

toString(): string

Returns encoded object in PEM format

Returns

string

Inherited from

PemData.toString

toString(format)

toString(format): string

Returns encoded object in selected format

Parameters

format: AsnExportType

hex, base64, base64url, pem, asn, text

Returns

string

Inherited from

PemData.toString


toTextObject()

toTextObject(): TextObject

Returns the object in textual representation

Returns

TextObject

Inherited from

PemData.toTextObject


toTextObjectEmpty()

protected toTextObjectEmpty(value?): TextObject

Parameters

value?: string

Returns

TextObject

Inherited from

PemData.toTextObjectEmpty


verify()

verify(params, crypto): Promise<boolean>

Validates a crl signature

Parameters

params: X509CrlVerifyParams

Verification parameters

crypto: Crypto = ...

Crypto provider. Default is from CryptoProvider

Returns

Promise<boolean>


isAsnEncoded()

static isAsnEncoded(data): data is AsnEncodedType

Parameters

data: any

Returns

data is AsnEncodedType

Inherited from

PemData.isAsnEncoded


toArrayBuffer()

static toArrayBuffer(raw): ArrayBuffer

Converts encoded raw to ArrayBuffer. Supported formats are HEX, DER, Base64, Base64Url, PEM

Parameters

raw: string | BufferSource

Encoded data

Returns

ArrayBuffer

Inherited from

PemData.toArrayBuffer