Table of Contents

Property TimeStampClient

Namespace
PdfSharp.Pdf.Signatures
Assembly
PdfSharp.Cryptography.dll

TimeStampClient

Gets the function that sends an RFC 3161 time-stamp request (a DER-encoded TimeStampReq) to a time-stamp authority and returns its reply (a DER-encoded TimeStampResp); set it when creating the signer. When it is set, the signature gets a signature time-stamp from it instead of an HTTP POST to the URI given to the constructor, for example to add authentication or to use a test authority. It is called once per signature. Time-stamps need .NET 8 or later. The synchronous Save waits for it: use SaveAsync, or ConfigureAwait(false) inside it, in applications with a synchronization context (WinForms, WPF).

public Func<byte[], Task<byte[]>>? TimeStampClient { get; init; }

Property Value

Func<byte[], Task<byte[]>>