Class AddValidationInformation
- java.lang.Object
-
- org.apache.pdfbox.examples.signature.validation.AddValidationInformation
-
public class AddValidationInformation extends java.lang.ObjectAn 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.- Author:
- Alexis Suter
-
-
Constructor Summary
Constructors Constructor Description AddValidationInformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)voidvalidateSignature(java.io.File inFile, java.io.File outFile)Signs the given PDF file.
-
-
-
Method Detail
-
validateSignature
public void validateSignature(java.io.File inFile, java.io.File outFile) throws java.io.IOExceptionSigns the given PDF file.- Parameters:
inFile- input PDF fileoutFile- 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
-
-