TimestampAsync(Stream, PdfTimestampClient, String?, CancellationToken) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Time-stamps the whole document and writes the time-stamped file to stream, asynchronously.

public Task TimestampAsync(Stream stream, PdfTimestampClient timestampClient, string? fieldName = null, CancellationToken cancellationToken = default(CancellationToken))

Parameters

stream
Stream

Where to write, from its current position. It is not disposed.

timestampClient
PdfTimestampClient

The client of the time-stamp authority.

fieldName
String

The signature field to hold the timestamp, or null for a new one.

cancellationToken
CancellationToken

Cancels the request and the writes.

Returns

Task
A task that completes when the time-stamped file is written.

Remarks

ISO 32000-2 §12.8.5; RFC 3161. Writes what Timestamp(Stream, PdfTimestampClient, String?) writes; the request and the writes to stream are asynchronous. A cancelled or failed request leaves the document as it was.