Class: TrustVerificationResult

Core.PDFNet. TrustVerificationResult


new TrustVerificationResult()

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

Extends

Methods


destroy()

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

getCertPath()

Retrieves the certificate path that was used for verification.
Returns:
A promise that resolves to a container of X509Certificate objects
Type
Promise.<Array.<Core.PDFNet.X509Certificate>>

getEmbeddedTimestampVerificationResult()

Returns the detailed timestamp result inside this TrustVerificationResult. One must call HasEmbeddedTimestampVerificationResult first to check whether the result is available.
Returns:
A promise that resolves to an EmbeddedTimestampVerificationResult object.
Type
Promise.<Core.PDFNet.EmbeddedTimestampVerificationResult>

getResultString()

Retrieves a string representation of the details of the trust verification status.
Returns:
A promise that resolves to a string. Note: Output may change in future versions.
Type
Promise.<string>

getTimeOfTrustVerification()

Retrieves the reference-time used for trust verification as an epoch time.
Returns:
A promise that resolves to an integral value representing an epoch time.
Type
Promise.<number>

getTimeOfTrustVerificationEnum()

Retrieves the type of reference-time used for trust verification.
Returns:
A promise that resolves to an enumerated value representing the type of reference-time used for trust verification.
Type
Promise.<number>
Example
Return value enum:
<pre>
PDFNet.VerificationOptions.TimeMode = {
	e_signing : 0
	e_timestamp : 1
	e_current : 2
}
</pre>

hasEmbeddedTimestampVerificationResult()

Returns whether this TrustVerificationResult has a detailed timestamp result inside.
Returns:
A promise that resolves to a boolean value representing whether this TrustVerificationResult has a detailed timestamp result inside.
Type
Promise.<boolean>

takeOwnership()

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

wasSuccessful()

Retrieves the trust verification status.
Returns:
A promise that resolves to 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.
Type
Promise.<boolean>