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
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
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
certificate | serialNumber
string
| X509Certificate
Returns
null
| X509CrlEntry
getExtension()
Call Signature
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
Call Signature
getExtension<
T
>(type
):null
|T
Returns an extension of specified type
Type Parameters
• T extends Extension
Parameters
type
(raw
) => T
Extension type
Returns
null
| T
Extension or null
getExtensions()
Returns a list of extensions of specified type
Param
Extension identifier
Call Signature
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
Call Signature
getExtensions<
T
>(type
):T
[]
Returns a list of extensions of specified type
Type Parameters
• T extends Extension
Parameters
type
(raw
) => T
Extension type
Returns
T
[]
Param
Extension identifier
getTextName()
protected
getTextName():string
Returns
string
Inherited from
PemData.getTextName
getThumbprint()
Call Signature
getThumbprint(
crypto
?):Promise
<ArrayBuffer
>
Returns a SHA-1 certificate thumbprint
Parameters
crypto?
Crypto
Crypto provider. Default is from CryptoProvider
Returns
Promise
<ArrayBuffer
>
Call Signature
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()
Call Signature
toString():
string
Returns encoded object in PEM format
Returns
string
Inherited from
PemData.toString
Call Signature
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
Inherited from
PemData.toTextObject
toTextObjectEmpty()
protected
toTextObjectEmpty(value
?):TextObject
Parameters
value?
string
Returns
Inherited from
PemData.toTextObjectEmpty
verify()
verify(
params
,crypto
):Promise
<boolean
>
Validates a crl signature
Parameters
params
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
Encoded data
string
| BufferSource
Returns
ArrayBuffer
Inherited from
PemData.toArrayBuffer