CertificateRevocationList
Represents the CertificateRevocationList structure described in RFC5280
Extends
Implements
Constructors
new CertificateRevocationList()
new CertificateRevocationList(
parameters
):CertificateRevocationList
Initializes a new instance of the CertificateRevocationList class
Parameters
• parameters: CertificateRevocationListParameters
= {}
Initialization parameters
Returns
Overrides
Properties
crlExtensions?
optional
crlExtensions:Extensions
Implementation of
ICertificateRevocationList
.crlExtensions
issuer
issuer:
RelativeDistinguishedNames
Implementation of
ICertificateRevocationList
.issuer
nextUpdate?
optional
nextUpdate:Time
Implementation of
ICertificateRevocationList
.nextUpdate
revokedCertificates?
optional
revokedCertificates:RevokedCertificate
[]
Implementation of
ICertificateRevocationList
.revokedCertificates
signature
signature:
AlgorithmIdentifier
Implementation of
ICertificateRevocationList
.signature
signatureAlgorithm
signatureAlgorithm:
AlgorithmIdentifier
Implementation of
ICertificateRevocationList
.signatureAlgorithm
signatureValue
signatureValue:
BitString
Implementation of
ICertificateRevocationList
.signatureValue
tbsView
tbsView:
Uint8Array
thisUpdate
thisUpdate:
Time
Implementation of
ICertificateRevocationList
.thisUpdate
version
version:
number
Implementation of
ICertificateRevocationList
.version
CLASS_NAME
static
CLASS_NAME:string
="CertificateRevocationList"
Name of the class
Overrides
Accessors
className
get
className():string
Returns
string
Inherited from
tbs
get
tbs():ArrayBuffer
Deprecated
Since version 3.0.0
set
tbs(value
):void
Deprecated
Since version 3.0.0
Parameters
• value: ArrayBuffer
Returns
ArrayBuffer
Implementation of
ICertificateRevocationList
.tbs
Methods
encodeTBS()
protected
encodeTBS():Sequence
Returns
Sequence
fromSchema()
fromSchema(
schema
):void
Converts parsed ASN.1 object into current class
Parameters
• schema: any
ASN.1 schema
Returns
void
Overrides
isCertificateRevoked()
isCertificateRevoked(
certificate
):boolean
Returns true
if supplied certificate is revoked, otherwise false
Parameters
• certificate: Certificate
Returns
boolean
sign()
sign(
privateKey
,hashAlgorithm
,crypto
):Promise
<void
>
Make a signature for existing CRL data
Parameters
• privateKey: CryptoKey
Private key for "subjectPublicKeyInfo" structure
• hashAlgorithm: string
= "SHA-1"
Hashing algorithm. Default SHA-1
• crypto: ICryptoEngine
= ...
Crypto engine
Returns
Promise
<void
>
toJSON()
toJSON():
CertificateRevocationListJson
Converts the class to JSON object
Returns
JSON object
Overrides
toSchema()
toSchema(
encodeFlag
):any
Convert current object to asn1js object and set correct values
Parameters
• encodeFlag: boolean
= false
Returns
any
asn1js object
Overrides
toString()
toString(
encoding
):string
Parameters
• encoding: "base64"
| "base64url"
| "hex"
= "hex"
Returns
string
Inherited from
verify()
verify(
parameters
,crypto
):Promise
<boolean
>
Verify existing signature
Parameters
• parameters: CertificateRevocationListVerifyParams
= {}
• crypto: ICryptoEngine
= ...
Crypto engine
Returns
Promise
<boolean
>
blockName()
static
blockName():string
Returns block name
Returns
string
Returns string block name
Inherited from
defaultValues()
defaultValues(memberName)
static
defaultValues(memberName
):ArrayBuffer
Returns default values for all class members
Parameters
• memberName: "tbs"
String name for a class member
Returns
ArrayBuffer
Default value
Overrides
defaultValues(memberName)
static
defaultValues(memberName
):number
Returns default values for all class members
Parameters
• memberName: "version"
String name for a class member
Returns
number
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):AlgorithmIdentifier
Returns default values for all class members
Parameters
• memberName: "signature"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):RelativeDistinguishedNames
Returns default values for all class members
Parameters
• memberName: "issuer"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):Time
Returns default values for all class members
Parameters
• memberName: "thisUpdate"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):Time
Returns default values for all class members
Parameters
• memberName: "nextUpdate"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):RevokedCertificate
[]
Returns default values for all class members
Parameters
• memberName: "revokedCertificates"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):Extensions
Returns default values for all class members
Parameters
• memberName: "crlExtensions"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):AlgorithmIdentifier
Returns default values for all class members
Parameters
• memberName: "signatureAlgorithm"
String name for a class member
Returns
Default value
Overrides
PkiObject.defaultValues
defaultValues(memberName)
static
defaultValues(memberName
):BitString
Returns default values for all class members
Parameters
• memberName: "signatureValue"
String name for a class member
Returns
BitString
Default value
Overrides
PkiObject.defaultValues
fromBER()
static
fromBER<T
>(this
,raw
):T
Creates PKI object from the raw data
Type Parameters
• T extends PkiObject
Parameters
• this: PkiObjectConstructor
<T
>
• raw: BufferSource
ASN.1 encoded raw data
Returns
T
Initialized and filled current class object
Inherited from
schema()
static
schema(parameters
):any
Returns value of pre-defined ASN.1 schema for current class
Parameters
• parameters: SchemaParameters
<object
> = {}
Input parameters for the schema
Returns
any
ASN.1 schema object