Show / Hide Table of Contents

# Class TimestampingResult

A class representing the result of testing a timestamping configuration.

##### Inheritance

object
TimestampingResult

##### 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 TimestampingResult : IDisposable

### Constructors

#### TimestampingResult(IntPtr)

##### Declaration

    public TimestampingResult(IntPtr impl_ptr)

##### Parameters

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

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

#### ~TimestampingResult()

##### Declaration

    protected ~TimestampingResult()

#### GetData()

If GetStatus gives true, returns the data from the completed timestamping operation, otherwise throws. If this result was returned from TimestampOnNextSave, then this data is the timestamp token. However, if this result was returned from GenerateContentsWithEmbeddedTimestamp, then this data is the main document CMS signature of the DigitalSignatureField but with a newly-added embedded timestamp (unsigned signature-time-stamp attribute as specified in PAdES and PDF 2.0).

##### Declaration

    public byte[] GetData()

##### Returns

Type | Description
--- | ---
byte[] | the data representing the result of the timestamping operation, if GetStatus gives true

#### GetResponseVerificationResult()

If a timestamp response was successfully retrieved from a timestamp authority, returns the result of verifying it. If a timestamp response was not received, throws. One should call HasResponseVerificationResult first to see if a detailed result is available before calling this function.

##### Declaration

    public EmbeddedTimestampVerificationResult GetResponseVerificationResult()

##### Returns

Type | Description
--- | ---
EmbeddedTimestampVerificationResult | a timestamp response verification result

#### GetStatus()

Retrieves the overall status of the timestamping configuration testing operation.

##### Declaration

    public bool GetStatus()

##### Returns

Type | Description
--- | ---
bool | a boolean value representing the status

#### GetString()

Retrieves a result message regarding the timestamping configuration testing operation.

##### Declaration

    public string GetString()

##### Returns

Type | Description
--- | ---
string | a string result message.

##### Remarks

Output may change in future versions

#### HasResponseVerificationResult()

Returns whether a timestamp response verification result is available. This means that false will be returned when a timestamp response was not received or was empty (e.g. network failures, improper server configuration, bad URL, etc.). This function should be called to check for the availability of a verification result before actually attempting to retrieve one using GetResponseVerificationResult (which throws if a result is not available).

##### Declaration

    public bool HasResponseVerificationResult()

##### Returns

Type | Description
--- | ---
bool | whether a timestamp response verification result is available

### Implements

IDisposable