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
timeStampAuthorityUriUriThe RFC 3161 time-stamp authority.
digestTypePdfMessageDigestTypeThe 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
timeStampClientFunc<byte[], Task<byte[]>>The function that sends the request and returns the reply.
digestTypePdfMessageDigestTypeThe digest of the covered bytes that the authority time-stamps; SHA-256 or stronger.