pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1846597 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
Date Wed, 14 Nov 2018 17:47:25 GMT
Author: tilman
Date: Wed Nov 14 17:47:25 2018
New Revision: 1846597

URL: http://svn.apache.org/viewvc?rev=1846597&view=rev
Log:
PDFBOX-4071: simplify

Modified:
    pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java?rev=1846597&r1=1846596&r2=1846597&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
Wed Nov 14 17:47:25 2018
@@ -93,8 +93,7 @@ public class CertInformationCollector
         {
             try (FileInputStream documentInput = new FileInputStream(fileName))
             {
-                byte[] docBytes = IOUtils.toByteArray(documentInput);
-                byte[] signatureContent = signature.getContents(docBytes);
+                byte[] signatureContent = signature.getContents(documentInput);
                 return getCertInfo(signatureContent);
             }
         }



Mime
View raw message