Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SignedCertificateTimestamp

Hierarchy

Implements

Index

Constructors

Properties

extensions: ArrayBuffer
hashAlgorithm: string
logID: ArrayBuffer
signature: BaseBlock<ValueBlock, LocalBaseBlockJson>
signatureAlgorithm: string
timestamp: Date
version: number
CLASS_NAME: string = "SignedCertificateTimestamp"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: any): void
  • fromStream(stream: SeqStream): void
  • toSchema(): RawData
  • toStream(): SeqStream
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • verify(logs: Log[], data: ArrayBuffer, dataType?: number, crypto?: ICryptoEngine): Promise<boolean>
  • Verify SignedCertificateTimestamp for specific input data

    Parameters

    • logs: Log[]

      Array of objects with information about each CT Log (like here: https://ct.grahamedgecombe.com/logs.json)

    • data: ArrayBuffer

      Data to verify signature against. Could be encoded Certificate or encoded PreCert

    • dataType: number = 0

      Type = 0 (data is encoded Certificate), type = 1 (data is encoded PreCert)

    • crypto: ICryptoEngine = ...

      Crypto engine

    Returns Promise<boolean>

  • blockName(): string
  • defaultValues(memberName: "version"): number
  • defaultValues(memberName: "logID"): ArrayBuffer
  • defaultValues(memberName: "extensions"): ArrayBuffer
  • defaultValues(memberName: "timestamp"): Date
  • defaultValues(memberName: "hashAlgorithm"): string
  • defaultValues(memberName: "signatureAlgorithm"): string
  • defaultValues(memberName: "signature"): any
  • 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