public class

VerificationResult

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

Class Overview

The class VerificationResult. The result of a verification operation performed on a digital signature.

Summary

Nested Classes
enum VerificationResult.DigestStatus  
enum VerificationResult.DocumentStatus  
enum VerificationResult.ModificationPermissionsStatus  
enum VerificationResult.TrustStatus  
Public Constructors
VerificationResult(long impl_ptr, Object ref)
Public Methods
long __GetHandle()
Object __GetRefHandle()
void destroy()
Frees the native memory of the object.
VerificationResult.DigestStatus getDigestStatus()
Retrieves the digest-related result condition associated with a digital signature verification operation.
DigitalSignatureField getDigitalSignatureField()
Retrieves the digital signature field associated with the digital signature verification operation that returned this result.
DisallowedChange[] getDisallowedChanges()
Retrieves a list of informational structures regarding any disallowed changes that have been made to the document since the signature associated with this verification result was signed.
VerificationResult.DocumentStatus getDocumentStatus()
Retrieves the document-related result condition associated with a digital signature verification operation.
VerificationResult.ModificationPermissionsStatus getPermissionsStatus()
Retrieves the result condition about permissions checks performed on any unsigned modifications associated with a digital signature verification operation.
DigestAlgorithm getSignersDigestAlgorithm()
Retrieves an enumeration value representing the digest algorithm used to sign the signature that is associated with this verification result.
VerificationResult.TrustStatus getTrustStatus()
Retrieves the trust-related result condition associated with a digital signature verification operation.
TrustVerificationResult getTrustVerificationResult()
Retrieves the detailed result associated with the trust step of the verification operation that returned this VerificationResult, if such a detailed trust result is available.
boolean getVerificationStatus()
Retrieves the main verification status.
boolean hasTrustVerificationResult()
Returns whether there is a detailed TrustVerificationResult in this VerificationResult or not.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public VerificationResult (long impl_ptr, Object ref)

Public Methods

public long __GetHandle ()

public Object __GetRefHandle ()

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 VerificationResult.DigestStatus getDigestStatus ()

Retrieves the digest-related result condition associated with a digital signature verification operation.

Returns
  • A DigestStatus-type enumeration value

public DigitalSignatureField getDigitalSignatureField ()

Retrieves the digital signature field associated with the digital signature verification operation that returned this result.

Returns
  • A DigitalSignatureField object

public DisallowedChange[] getDisallowedChanges ()

Retrieves a list of informational structures regarding any disallowed changes that have been made to the document since the signature associated with this verification result was signed.

Returns
  • a collection of DisallowedChange objects.

public VerificationResult.DocumentStatus getDocumentStatus ()

Retrieves the document-related result condition associated with a digital signature verification operation.

Returns
  • A DocumentStatus-type enumeration value

public VerificationResult.ModificationPermissionsStatus getPermissionsStatus ()

Retrieves the result condition about permissions checks performed on any unsigned modifications associated with a digital signature verification operation.

Returns
  • A ModificationPermissionsStatus-type enumeration value

public DigestAlgorithm getSignersDigestAlgorithm ()

Retrieves an enumeration value representing the digest algorithm used to sign the signature that is associated with this verification result.

Returns
  • A DigestAlgorithm enumeration value

public VerificationResult.TrustStatus getTrustStatus ()

Retrieves the trust-related result condition associated with a digital signature verification operation.

Returns
  • A TrustStatus-type enumeration value

public TrustVerificationResult getTrustVerificationResult ()

Retrieves the detailed result associated with the trust step of the verification operation that returned this VerificationResult, if such a detailed trust result is available. Must call HasTrustVerificationResult first and check for a true result.

Returns
  • An optional TrustVerificationResult

public boolean getVerificationStatus ()

Retrieves the main verification status. The main status is determined based on the other statuses.

Returns
  • A boolean representing whether or not the verification operation was completely successful

public boolean hasTrustVerificationResult ()

Returns whether there is a detailed TrustVerificationResult in this VerificationResult or not.

Returns
  • A boolean