[]
Encapsulates the information that is used to include timestamps from a Time Stamping Authority into digital signatures in PDF documents.
public class TimeStamp : ITimeStampGenerator
Initializes a new instance of the TimeStamp class.
public TimeStamp(string serverUrl, string userName, string password, OID hashAlgorithm = null)
serverUrl
stringThe value of ServerUrl.
userName
stringThe value of UserName.
password
stringThe value of Password.
hashAlgorithm
OIDThe value of HashAlgorithm, can be null, in this case SHA-256 will be used.
Initializes a new instance of the TimeStamp class.
public TimeStamp(string serverUrl, string userName, string password, TimeStamp.HashDelegate hashMethod)
serverUrl
stringThe value of ServerUrl.
userName
stringThe value of UserName.
password
stringThe value of Password.
hashMethod
TimeStamp.HashDelegateThe value of HashMethod.
Initializes a new instance of the TimeStamp class.
public TimeStamp(string serverUrl)
serverUrl
stringThe value of ServerUrl.
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; }
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; }
Gets or sets the user password to send to the Time Stamping Authority (TSA) server.
public string Password { get; set; }
Gets or sets the uniform resource identifier for the Time Stamping Authority (TSA) server providing the time-stamp.
public string ServerUrl { get; set; }
Gets or sets the user ID to send to the Time Stamping Authority (TSA) server.
public string UserName { get; set; }