Adds a Signature field compatible with a DocTimeStamp.

 

   

Syntax
 

[C#]
Signature AddDocTimestamp()
Signature AddDocTimestamp(string name)

[Visual Basic]
Function AddDocTimestamp() As Signature
Function AddDocTimestamp(name As string) As Signature

 

   

Params
 
Name Description
name The name of the document timestamp field. If no name is specified a unique name will be added.

 

   

Notes
 

Adds a Signature field compatible with a document timestamp.

Add an RFC 3161 compliant document timestamp field to the form.

To sign the timestamp you need to specify either a TimestampServiceUrl or a CustomSigner and then call Timestamp.

 

   

Example
 

See the Annotations example project for a full example.

However the following is a code snippet showing how this might be used.

 

var sig = doc.Form.AddDocTimestamp("Timestamp"); Uri uri = new Uri("http://timestamp.digicert.com"); Oid oid = new Oid(CryptoConfig.MapNameToOID("SHA256")); sig.TimestampServiceUrl = uri; sig.Timestamp(oid, 0);