pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1847049 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
Date Tue, 20 Nov 2018 19:12:20 GMT
Author: tilman
Date: Tue Nov 20 19:12:20 2018
New Revision: 1847049

URL: http://svn.apache.org/viewvc?rev=1847049&view=rev
Log:
PDFBOX-3017: 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=1847049&r1=1847048&r2=1847049&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
Tue Nov 20 19:12:20 2018
@@ -30,6 +30,7 @@ import java.security.SignatureException;
 import java.security.cert.CertificateException;
 import java.security.cert.CertificateFactory;
 import java.security.cert.X509Certificate;
+import java.util.Arrays;
 import java.util.Collection;
 import java.util.HashMap;
 import java.util.Map;
@@ -385,10 +386,7 @@ public class CertInformationCollector
     public void addAllCertsFromHolders(X509CertificateHolder[] certHolders)
             throws CertificateProccessingException
     {
-        for (X509CertificateHolder certHolder : certHolders)
-        {
-            getCertFromHolder(certHolder);
-        }
+        addAllCerts(Arrays.asList(certHolders));
     }
 
     /**



Mime
View raw message