Table of Contents

Constructor PdfTimeStampSigner

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

PdfTimeStampSigner(Uri, PdfMessageDigestType)

Creates a signer that posts its requests to a time-stamp authority over HTTP.

public PdfTimeStampSigner(Uri timeStampAuthorityUri, PdfMessageDigestType digestType = PdfMessageDigestType.SHA256)

Parameters

timeStampAuthorityUri Uri

The RFC 3161 time-stamp authority.

digestType PdfMessageDigestType

The digest of the covered bytes that the authority time-stamps; SHA-256 or stronger.

PdfTimeStampSigner(Func<byte[], Task<byte[]>>, PdfMessageDigestType)

Creates a signer that sends its requests through a function of your own, for example to add authentication or to use a test authority. The function gets a DER-encoded TimeStampReq and returns the DER-encoded TimeStampResp.

public PdfTimeStampSigner(Func<byte[], Task<byte[]>> timeStampClient, PdfMessageDigestType digestType = PdfMessageDigestType.SHA256)

Parameters

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

The function that sends the request and returns the reply.

digestType PdfMessageDigestType

The digest of the covered bytes that the authority time-stamps; SHA-256 or stronger.