Skip to main content

SignedCertificateTimestamp

Extends

Implements

Constructors

new SignedCertificateTimestamp()

new SignedCertificateTimestamp(parameters): SignedCertificateTimestamp

Initializes a new instance of the SignedCertificateTimestamp class

Parameters

parameters: SignedCertificateTimestampParameters = {}

Initialization parameters

Returns

SignedCertificateTimestamp

Overrides

PkiObject.constructor

Properties

extensions

extensions: ArrayBuffer

Implementation of

ISignedCertificateTimestamp.extensions


hashAlgorithm

hashAlgorithm: string

Implementation of

ISignedCertificateTimestamp.hashAlgorithm


logID

logID: ArrayBuffer

Implementation of

ISignedCertificateTimestamp.logID


signature

signature: BaseBlock<ValueBlock, LocalBaseBlockJson>

Implementation of

ISignedCertificateTimestamp.signature


signatureAlgorithm

signatureAlgorithm: string

Implementation of

ISignedCertificateTimestamp.signatureAlgorithm


timestamp

timestamp: Date

Implementation of

ISignedCertificateTimestamp.timestamp


version

version: number

Implementation of

ISignedCertificateTimestamp.version


CLASS_NAME

static CLASS_NAME: string = "SignedCertificateTimestamp"

Name of the class

Overrides

PkiObject.CLASS_NAME

Accessors

className

get className(): string

Returns

string

Inherited from

PkiObject.className

Methods

fromSchema()

fromSchema(schema): void

Converts parsed ASN.1 object into current class

Parameters

schema: any

ASN.1 schema

Returns

void

Overrides

PkiObject.fromSchema


fromStream()

fromStream(stream): void

Converts SeqStream data into current class

Parameters

stream: SeqStream

Returns

void


toJSON()

toJSON(): SignedCertificateTimestampJson

Converts the class to JSON object

Returns

SignedCertificateTimestampJson

JSON object

Overrides

PkiObject.toJSON


toSchema()

toSchema(): RawData

Converts current object to ASN.1 object and sets correct values

Returns

RawData

ASN.1 object

Overrides

PkiObject.toSchema


toStream()

toStream(): SeqStream

Converts current object to SeqStream data

Returns

SeqStream

SeqStream object


toString()

toString(encoding): string

Parameters

encoding: "base64" | "base64url" | "hex" = "hex"

Returns

string

Inherited from

PkiObject.toString


verify()

verify(logs, data, dataType, crypto): 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()

static blockName(): string

Returns block name

Returns

string

Returns string block name

Inherited from

PkiObject.blockName


defaultValues()

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): ArrayBuffer

Returns default values for all class members

Parameters

memberName: "logID"

String name for a class member

Returns

ArrayBuffer

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): ArrayBuffer

Returns default values for all class members

Parameters

memberName: "extensions"

String name for a class member

Returns

ArrayBuffer

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): Date

Returns default values for all class members

Parameters

memberName: "timestamp"

String name for a class member

Returns

Date

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): string

Returns default values for all class members

Parameters

memberName: "hashAlgorithm"

String name for a class member

Returns

string

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): string

Returns default values for all class members

Parameters

memberName: "signatureAlgorithm"

String name for a class member

Returns

string

Default value

Overrides

PkiObject.defaultValues

defaultValues(memberName)

static defaultValues(memberName): any

Returns default values for all class members

Parameters

memberName: "signature"

String name for a class member

Returns

any

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

PkiObject.fromBER


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

Inherited from

PkiObject.schema