[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TimeStamp

Class TimeStamp

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Encapsulates the information that is used to include timestamps from a Time Stamping Authority into digital signatures in PDF documents.

public class TimeStamp : ITimeStampGenerator
Inheritance
object
TimeStamp
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

TimeStamp(string, string, string, OID)

Initializes a new instance of the TimeStamp class.

public TimeStamp(string serverUrl, string userName, string password, OID hashAlgorithm = null)

Parameters

serverUrl string

The value of ServerUrl.

userName string

The value of UserName.

password string

The value of Password.

hashAlgorithm OID

The value of HashAlgorithm, can be null, in this case SHA-256 will be used.

TimeStamp(string, string, string, HashDelegate)

Initializes a new instance of the TimeStamp class.

public TimeStamp(string serverUrl, string userName, string password, TimeStamp.HashDelegate hashMethod)

Parameters

serverUrl string

The value of ServerUrl.

userName string

The value of UserName.

password string

The value of Password.

hashMethod TimeStamp.HashDelegate

The value of HashMethod.

TimeStamp(string)

Initializes a new instance of the TimeStamp class.

public TimeStamp(string serverUrl)

Parameters

serverUrl string

The value of ServerUrl.

Properties

HashAlgorithm

Gets or sets the ID of the hash algorithm used to encode the time-stamp request. If set to null, defaults to SHA-256. This property is used only if HashMethod is null. Note that the type of algorithm depends on the time-stamp server.

public OID HashAlgorithm { get; set; }

Property Value

OID

HashMethod

Gets or sets the delegate used to hash the time-stamp request. If this value is null, the HashAlgorithm will be used.

public TimeStamp.HashDelegate HashMethod { get; set; }

Property Value

TimeStamp.HashDelegate

Password

Gets or sets the user password to send to the Time Stamping Authority (TSA) server.

public string Password { get; set; }

Property Value

string

ServerUrl

Gets or sets the uniform resource identifier for the Time Stamping Authority (TSA) server providing the time-stamp.

public string ServerUrl { get; set; }

Property Value

string

UserName

Gets or sets the user ID to send to the Time Stamping Authority (TSA) server.

public string UserName { get; set; }

Property Value

string