Community articlegetSignatureVerificationStatus method
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Description

When called, this method checks to see if the digital signatures in a given form are valid.

Method

  public short getSignatureVerificationStatus( ) throws UWIException;


Parameters

There are no parameters for this method.

Returns

a short having one of the following values:
Table 1. return codes
CodeStatus
FormNodeP.UFL_SIGS_OKThe signatures are valid.
FormNodeP.UFL_SIGS_NOTOKOne or more signatures are broken.
FormNodeP.UFL_SIGS_UNVERIFIEDOne or more signatures are unverifiable.


On error, the method throws a generic exception (UWIException).

Example

The following example reads a form into memory, and then uses getSignatureVerificationStatus to check if the signatures in a loaded form are valid.
   private static void loadForm( ) throws Exception
   {
      FormNodeP.readForm("Sample.xfd", 0);
      
      if (theForm.getSignatureVerificationStatus()!= FormNodeP.UFL_SIGS_OK)
      {
         System.out.println("At least one digital signature is not valid.");
      }
   }


Parent topic:
FormNodeP class