Skip to end of metadata
Go to start of metadata
Contents Summary
  

The source code in below examples uses some methods/classes defined in Common Utilities

Digital Verification of Word Documents With .cer Certificate Container

The Recipe

  • Configure the storage paths, create and populate the object of SignatureConfig
  • Instantiate the signature handler, by passing SignatureConfig
  • Initialize an object to setup digital verification options of a word document using WordsVerifyDigitalOptions("Name.cer")
  • Setup digital verification options
  • Verify document using handler.Verify("File to be verified", verifyOptions)
  • Display verification result

The Code

Digital Verification of Word Documents With .pfx and .cer Certificate Container

The Recipe

  • Configure the storage paths, create and populate the object of SignatureConfig
  • Instantiate the signature handler, by passing SignatureConfig
  • Initialize an object of class WordsVerifyDigitalOptions by passing .pfx certificate using WordsVerifyDigitalOptions("CertName.pfx") and setting password of the .pfx certificate in the Password property of the object
  • Initialize an object of class WordsVerifyDigitalOptions by passing .cer certificate using WordsVerifyDigitalOptions("CertName.cer")
  • Setup VerifyOptionsCollection by passing both WordsVerifyDigitalOptions objects
  • Verify document using handler.Verify("File to be verified", verifyOptions)
  • Display verification result

The Code

Digital Verification of Word Documents With Extended Options

The Recipe

  • Configure the storage paths, create and populate the object of SignatureConfig
  • Instantiate the signature handler, by passing SignatureConfig
  • Initialize an object of class WordsVerifyDigitalOptions by passing .cer certificate
  • Set setComments property to text
  • Set setSubjectName property to text
  • Set setIssuerName property to text
  • Set setSignDateTimeFrom property to Date
  • Set setSignDateTimeTo property to Date
  • Verify document
  • Display verification result

The Code

 
Labels
  • No labels