Class: TimestampingTestResult

PDFNet. TimestampingTestResult


new TimestampingTestResult()

A class representing the result of testing a timestamping configuration.

Extends

Methods


destroy()

Destructor
Inherited From:
Returns:
Type
Promise.<void>

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 promise that resolves to a timestamp response verification result
Type
Promise.<PDFNet.EmbeddedTimestampVerificationResult>

getStatus()

Retrieves the overall status of the timestamping configuration testing operation.
Returns:
A promise that resolves to a boolean value representing the status.
Type
Promise.<boolean>

getString()

Retrieves a result message regarding the timestamping configuration testing operation.
Returns:
A promise that resolves to a string result message.
Type
Promise.<string>

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:
A promise that resolves to whether a timestamp response verification result is available
Type
Promise.<boolean>

takeOwnership()

Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
Inherited From:
Returns:
Type
void