Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CertificateRevocationList

Represents the CertificateRevocationList structure described in RFC5280

Hierarchy

Implements

Index

Constructors

Properties

crlExtensions?: Extensions
nextUpdate?: Time
revokedCertificates?: RevokedCertificate[]
signatureAlgorithm: AlgorithmIdentifier
signatureValue: BitString
tbsView: Uint8Array
thisUpdate: Time
version: number
CLASS_NAME: string = "CertificateRevocationList"

Name of the class

Accessors

  • get className(): string
  • get tbs(): ArrayBuffer
  • set tbs(value: ArrayBuffer): void

Methods

  • encodeTBS(): Sequence
  • fromSchema(schema: any): void
  • isCertificateRevoked(certificate: Certificate): boolean
  • sign(privateKey: CryptoKey, hashAlgorithm?: string, crypto?: ICryptoEngine): 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>

  • toSchema(encodeFlag?: boolean): any
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • defaultValues(memberName: "tbs"): ArrayBuffer
  • defaultValues(memberName: "version"): number
  • defaultValues(memberName: "signature"): AlgorithmIdentifier
  • defaultValues(memberName: "issuer"): RelativeDistinguishedNames
  • defaultValues(memberName: "thisUpdate"): Time
  • defaultValues(memberName: "nextUpdate"): Time
  • defaultValues(memberName: "revokedCertificates"): RevokedCertificate[]
  • defaultValues(memberName: "crlExtensions"): Extensions
  • defaultValues(memberName: "signatureAlgorithm"): AlgorithmIdentifier
  • defaultValues(memberName: "signatureValue"): BitString
  • fromBER<T>(this: PkiObjectConstructor<T>, raw: BufferSource): T
  • Creates PKI object from the raw data

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

    Initialized and filled current class object

Generated using TypeDoc