[]
Generates a timestamp token by sending a time-stamp request to a Time Stamping Authority (TSA) server.
new TimeStampProvider(serverUrl, externalResourcesOptions?): TimeStampProvider;
Creates a new TimeStampProvider.
string
The uniform resource identifier for the Time Stamping Authority (TSA) server providing the time-stamp.
TimeStampProvider
get externalResourcesOptions(): ExternalResourcesOptions;
Gets configuration options used to retrieve external TSA response.
The current external resources configuration, or undefined
if default behavior is used.
set externalResourcesOptions(value): void;
Sets configuration options used to retrieve external TSA response.
The external resources configuration to apply,
or undefined to use the default behavior.
void
get hashAlgorithmOID(): string;
Gets the object identifier (OID) of hash algorithm used to encode the time-stamp request, default is SHA-256. Note! The list of supported algorithms defined by the TSA server used.
string
set hashAlgorithmOID(value): void;
Sets the object identifier (OID) of hash algorithm used to encode the time-stamp request, default is SHA-256. Note! The list of supported algorithms defined by the TSA server used.
string
void
get serverUrl(): string;
Gets the uniform resource identifier for the Time Stamping Authority (TSA) server providing the time-stamp.
string
set serverUrl(value): void;
Sets the uniform resource identifier for the Time Stamping Authority (TSA) server providing the time-stamp.
string
void
buildTimeStampToken(dataHash, _): Promise<Uint8Array<ArrayBufferLike>>;
Generates a timestamp token (RFC 3161) for the provided data hash.
Uint8Array
The data hash to be timestamped.
Promise<Uint8Array<ArrayBufferLike>>
A promise that resolves to a DER-encoded timestamp token.
TimeStampProviderBase.buildTimeStampToken
getTimeStampParams(): Promise<TimeStampParams>;
Prepares parameters required for the first stage of the timestamping process.
This method performs validation, initializes timestamping-related data, and collects all inputs required for building the final timestamp container. It corresponds to the "preparation stage" of timestamping.
Promise<TimeStampParams>
A TimeStampParams object containing parameters required for timestamp generation
If the configured timestamp format is invalid or unsupported.