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 2025/01/19 15:05:49 UTC
svn commit: r1923230 - /pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
Author: tilman
Date: Sun Jan 19 15:05:48 2025
New Revision: 1923230
URL: http://svn.apache.org/viewvc?rev=1923230&view=rev
Log:
PDFBOX-5660: use constant
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=1923230&r1=1923229&r2=1923230&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 Sun Jan 19 15:05:48 2025
@@ -154,9 +154,6 @@ public class TestCreateSignature
certificate = keyStore.getCertificateChain(keyStore.aliases().nextElement())[0];
tsa = System.getProperty("org.apache.pdfbox.examples.pdmodel.tsa");
-
- //tsa = "https://freetsa.org/tsr";
- tsa = "http://time.certum.pl";
}
/**
@@ -872,7 +869,7 @@ public class TestCreateSignature
PDDocumentCatalog docCatalog = doc.getDocumentCatalog();
COSDictionary dssDict = docCatalog.getCOSObject().getCOSDictionary(COSName.getPDFName("DSS"));
- COSArray dssCertArray = dssDict.getCOSArray(COSName.getPDFName("Certs"));
+ COSArray dssCertArray = dssDict.getCOSArray(COSName.CERTS);
COSDictionary vriDict = dssDict.getCOSDictionary(COSName.getPDFName("VRI"));
// Check that all known signature certificates are in the VRI/signaturehash/Cert array