 |
TimeStampAuthority Class |
Inheritance HierarchySystemObject
SelectPdf.UniversalTimeStampAuthority
Namespace: SelectPdf.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic class TimeStampAuthority
Public Class TimeStampAuthority
The TimeStampAuthority type exposes the following members.
Constructors
Properties| | Name | Description |
|---|
 | Password | Gets or sets the TSA password (when the server requires authentication). |
 | Server | Gets or sets the TSA server URL. |
 | TimeOut |
Gets or sets the TSA connection timeout, in SECONDS. Zero, the default, leaves the
underlying request's own timeout in place.
|
 | UserName | Gets or sets the TSA user name (when the server requires authentication). |
Top
ExamplePdfSecurityManager manager = new PdfSecurityManager();
manager.Load("document.pdf");
TimeStampAuthority tsa =
new TimeStampAuthority(new System.Uri("http://timestamp.example.com"));
manager.Sign("certificate.pfx", "pfxPassword", "Signature1", "Approved",
"Head office", "", 0,
new SelectPdf.Universal.Drawing.RectangleF(40, 40, 200, 60), tsa);
manager.Save("signed.pdf");Dim manager As New PdfSecurityManager()
manager.Load("document.pdf")
Dim tsa As New TimeStampAuthority(New System.Uri("http://timestamp.example.com"))
manager.Sign("certificate.pfx", "pfxPassword", "Signature1", "Approved",
"Head office", "", 0,
New SelectPdf.Universal.Drawing.RectangleF(40, 40, 200, 60), tsa)
manager.Save("signed.pdf")
See Also