Class AddValidationInformation

java.lang.Object
org.apache.pdfbox.examples.signature.validation.AddValidationInformation

public class AddValidationInformation extends Object
An example for adding Validation Information to a signed PDF, inspired by ETSI TS 102 778-4 V1.1.2 (2009-12), Part 4: PAdES Long Term - PAdES-LTV Profile. This procedure appends the Validation Information of the last signature (more precise its signer(s)) to a copy of the document. The signature and the signed data will not be touched and stay valid.

See also Bachelor thesis (in German) about LTV

Author:
Alexis Suter
  • Constructor Details

    • AddValidationInformation

      public AddValidationInformation()
  • Method Details

    • validateSignature

      public void validateSignature(File inFile, File outFile) throws IOException
      Signs the given PDF file.
      Parameters:
      inFile - input PDF file
      outFile - output PDF file
      Throws:
      IOException - if the input file could not be read
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException