pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1848756 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
Date Wed, 12 Dec 2018 12:44:49 GMT
Author: tilman
Date: Wed Dec 12 12:44:49 2018
New Revision: 1848756

URL: http://svn.apache.org/viewvc?rev=1848756&view=rev
Log:
PDFBOX-3017: rename method that will be used for OCSP and CRL certificates and use simpler
parameter type

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

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java?rev=1848756&r1=1848755&r2=1848756&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
(original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/validation/CertInformationCollector.java
Wed Dec 12 12:44:49 2018
@@ -421,24 +421,20 @@ public class CertInformationCollector
     }
 
     /**
-     * Traverse the OCSP certificate.
+     * Traverse a certificate.
      *
-     * @param certHolder
+     * @param certificate
      * @return
      * @throws CertificateProccessingException 
      */
-    CertSignatureInformation getOCSPCertInfo(X509CertificateHolder certHolder) throws CertificateProccessingException
+    CertSignatureInformation getCertInfo(X509Certificate certificate) throws CertificateProccessingException
     {
         try
         {
             CertSignatureInformation certSignatureInformation = new CertSignatureInformation();
-            traverseChain(certConverter.getCertificate(certHolder), certSignatureInformation,
MAX_CERTIFICATE_CHAIN_DEPTH);
+            traverseChain(certificate, certSignatureInformation, MAX_CERTIFICATE_CHAIN_DEPTH);
             return certSignatureInformation;
         }
-        catch (CertificateException ex)
-        {
-            throw new CertificateProccessingException(ex);
-        }
         catch (IOException ex)
         {
             throw new CertificateProccessingException(ex);



Mime
View raw message