public class

TimestampingTestResult

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.TimestampingTestResult

Class Overview

A class representing the result of testing a timestamping configuration.

Summary

Public Constructors
TimestampingTestResult(long impl_ptr)
Public Methods
long __GetHandle()
void destroy()
Frees the native memory of the object.
EmbeddedTimestampVerificationResult getResponseVerificationResult()
If a timestamp response was successfully retrieved from a timestamp authority, returns the result of verifying it.
boolean getStatus()
Retrieves the overall status of the timestamping configuration testing operation.
String getString()
Retrieves a result message regarding the timestamping configuration testing operation.
boolean hasResponseVerificationResult()
Returns whether a timestamp response verification result is available.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TimestampingTestResult (long impl_ptr)

Public Methods

public long __GetHandle ()

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 EmbeddedTimestampVerificationResult 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.

Returns
  • a timestamp response verification result

public boolean getStatus ()

Retrieves the overall status of the timestamping configuration testing operation.

Returns
  • a boolean value representing the status

public String getString ()

Retrieves a result message regarding the timestamping configuration testing operation.

Returns
  • a string result message.

public boolean 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).

Returns
  • whether a timestamp response verification result is available