Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class

# TrustVerificationResult

extends Object
implements AutoCloseable

java.lang.Object
↳ | com.pdftron.pdf.TrustVerificationResult

## Class Overview

The detailed result of a trust verification step of a verification operation performed on a digital signature.

## Summary

Public Constructors
| TrustVerificationResult(long impl_ptr)

Public Methods
long | __GetHandle()
void | close() Frees the native memory of the object.
void | destroy() Frees the native memory of the object.
X509Certificate[] | getCertPath() Retrieves the certificate path that was used for verification.
EmbeddedTimestampVerificationResult | getEmbeddedTimestampVerificationResult() Returns the detailed timestamp result inside this TrustVerificationResult.
String | getResultString() Retrieves a string representation of the details of the trust verification status.
long | getTimeOfTrustVerification() Retrieves the reference-time used for trust verification as an epoch time.
VerificationOptions.TimeMode | getTimeOfTrustVerificationEnum() Retrieves the type of reference-time used for trust verification.
boolean | hasEmbeddedTimestampVerificationResult() Returns whether this TrustVerificationResult has a detailed timestamp result inside.
boolean | wasSuccessful() Retrieves the trust verification status.

[Expand] Inherited Methods
From class java.lang.Object
boolean | equals(Object arg0)
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface java.lang.AutoCloseable
abstract void | close()

## Public Constructors

#### public TrustVerificationResult (long impl_ptr)

## Public Methods

#### public long __GetHandle ()

#### public void close ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

##### Throws

PDFNetException |

#### public X509Certificate[] getCertPath ()

Retrieves the certificate path that was used for verification.

##### Returns

- a container of X509Certificate objects

##### Throws

PDFNetException |

#### public EmbeddedTimestampVerificationResult getEmbeddedTimestampVerificationResult ()

Returns the detailed timestamp result inside this TrustVerificationResult. One must call HasEmbeddedTimestampVerificationResult first to check whether the result is available.

##### Returns

- an EmbeddedTimestampVerificationResult object

##### Throws

PDFNetException |

#### public String getResultString ()

Retrieves a string representation of the details of the trust verification status.

Note: Output may change in future versions.

##### Returns

- A string

##### Throws

PDFNetException |

#### public long getTimeOfTrustVerification ()

Retrieves the reference-time used for trust verification as an epoch time.

##### Returns

- An integral value representing an epoch time

##### Throws

PDFNetException |

#### public VerificationOptions.TimeMode getTimeOfTrustVerificationEnum ()

Retrieves the type of reference-time used for trust verification.

##### Returns

- An enumerated value representing the type of reference-time used for trust verification

##### Throws

PDFNetException |

#### public boolean hasEmbeddedTimestampVerificationResult ()

Returns whether this TrustVerificationResult has a detailed timestamp result inside.

##### Returns

- a boolean value representing whether this TrustVerificationResult has a detailed timestamp result inside

##### Throws

PDFNetException |

#### public boolean wasSuccessful ()

Retrieves the trust verification status.

##### Returns

- A boolean representing whether or not the trust verification operation was successful. Whether trust-related warnings are treated as errors or not depend on the VerificationOptions used for the verification operation

##### Throws

PDFNetException |