All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfTsaClient Class

Allows you to generate timestamps.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v20.1.Core.dll

Declaration

public class PdfTsaClient :
    ITsaClient
Public Class PdfTsaClient
    Implements ITsaClient

Remarks

The PdfTsaClient class is the default ITsaClient implementation. Use this class to generate timestamps.

Pass the URI of a timestamp server to the PdfTsaClient constructor. You can specify the username and a password to log into the server. If the server rejects the timestamp request, a TspValidationException is thrown.

Use one of the PdfHashAlgorithm enumeration values to specify the timestamp's hashing algorithm. Create the IDigestCalculator implementation and pass the created object to the PdfTsaClient constructor to provide the digest value calculator to the timestamp.

The code sample below shows how to create a timestamp for a PKCS#7 signature:

ITsaClient tsaClient = new PdfTsaClient(new Uri(@"https://freetsa.org/tsr"), PdfHashAlgorithm.SHA256);
Pkcs7Signer pkcs7Signature = new Pkcs7Signer("Signing Documents//testcert.pfx", "123", PdfHashAlgorithm.SHA256, tsaClient);

Implements

Inheritance

See Also