Class AddValidationInformation


  • public class AddValidationInformation
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      void validateSignature​(java.io.File inFile, java.io.File outFile)
      Signs the given PDF file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddValidationInformation

        public AddValidationInformation()
    • Method Detail

      • validateSignature

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

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException