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
From interface java.lang.AutoCloseable

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.

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.

public X509Certificate[] getCertPath ()

Retrieves the certificate path that was used for verification.

Returns
  • a container of X509Certificate objects

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

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

public long getTimeOfTrustVerification ()

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

Returns
  • An integral value representing an epoch time

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

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

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