Show / Hide Table of Contents

# Class TimestampingConfiguration

A class representing a set of options for timestamping a document.

##### Inheritance

object
TimestampingConfiguration

##### Implements

IDisposable

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.PDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class TimestampingConfiguration : IDisposable

### Constructors

#### TimestampingConfiguration(IntPtr)

##### Declaration

    public TimestampingConfiguration(IntPtr impl_ptr)

##### Parameters

Type | Name | Description
--- | --- | ---
IntPtr | impl_ptr |

#### TimestampingConfiguration(string)

Constructor

##### Declaration

    public TimestampingConfiguration(string in_url)

##### Parameters

Type | Name | Description
--- | --- | ---
string | in_url | a string representing a URL of a timestamp authority (TSA) to use during timestamping

### Methods

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### ~TimestampingConfiguration()

##### Declaration

    protected ~TimestampingConfiguration()

#### SetTimestampAuthorityServerPassword(string)

Setter for a password to use during timestamping.

##### Declaration

    public void SetTimestampAuthorityServerPassword(string in_password)

##### Parameters

Type | Name | Description
--- | --- | ---
string | in_password | a string representing a password.

#### SetTimestampAuthorityServerURL(string)

Setter to change the timestamp authority (TSA) URL to use during timestamping.

##### Declaration

    public void SetTimestampAuthorityServerURL(string in_url)

##### Parameters

Type | Name | Description
--- | --- | ---
string | in_url | a string representing a URL of a timestamp authority.

#### SetTimestampAuthorityServerUsername(string)

Setter for a username to use during timestamping.

##### Declaration

    public void SetTimestampAuthorityServerUsername(string in_username)

##### Parameters

Type | Name | Description
--- | --- | ---
string | in_username | a string representing a username.

#### SetUseNonce(bool)

Setter for whether to use a nonce (unique random number) during timestamping. This is on by default, and should be on whenever a timestamp authority supports it, because it helps prevent replay attacks.

##### Declaration

    public void SetUseNonce(bool in_use_nonce)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | in_use_nonce | a boolean value representing whether or not to use a nonce.

#### TestConfiguration(VerificationOptions)

Tests a timestamping configuration for usability and reports any failures. This function does not throw on many common failures, unlike the real signing, thereby allowing early diagnosis of things like connectivity issues with timestamp authorities.

##### Declaration

    public TimestampingResult TestConfiguration(VerificationOptions in_opts)

##### Parameters

Type | Name | Description
--- | --- | ---
VerificationOptions | in_opts | a set of verification options to try to use.

##### Returns

Type | Description
--- | ---
TimestampingResult | A result object containing information about the status of the configuration test and any errors that occurred during it

### Implements

IDisposable