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.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public sealed class TimestampingConfiguration : IDisposable

### Constructors

#### 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

#### Dispose()

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### ~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