You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2021/04/13 06:27:47 UTC
svn commit: r1888710 -
/pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
Author: tilman
Date: Tue Apr 13 06:27:46 2021
New Revision: 1888710
URL: http://svn.apache.org/viewvc?rev=1888710&view=rev
Log:
PDFBOX-5157: add LTV check to timestamped LTV file
Modified:
pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
Modified: pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java?rev=1888710&r1=1888709&r2=1888710&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java (original)
+++ pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java Tue Apr 13 06:27:46 2021
@@ -271,7 +271,7 @@ public class TestCreateSignature
@Test
public void testCreateSignedTimeStamp()
throws IOException, CMSException, OperatorCreationException, GeneralSecurityException,
- TSPException, CertificateVerificationException
+ TSPException, CertificateVerificationException, OCSPException
{
if (externallySign)
{
@@ -316,6 +316,8 @@ public class TestCreateSignature
File outFile = new File(outDir, substring + "_LTV.pdf");
AddValidationInformation addValidationInformation = new AddValidationInformation();
addValidationInformation.validateSignature(inFile, outFile);
+
+ checkLTV(outFile);
}
/**