pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1845193 - /pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Date Tue, 30 Oct 2018 04:32:27 GMT
Author: tilman
Date: Tue Oct 30 04:32:26 2018
New Revision: 1845193

URL: http://svn.apache.org/viewvc?rev=1845193&view=rev
Log:
PDFBOX-4071: remove the declaration of thrown exception 'org.bouncycastle.util.StoreException'
which is a runtime exception

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

Modified: pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java?rev=1845193&r1=1845192&r2=1845193&view=diff
==============================================================================
--- pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
(original)
+++ pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Tue Oct 30 04:32:26 2018
@@ -70,7 +70,6 @@ import org.bouncycastle.tsp.TSPException
 import org.bouncycastle.tsp.TimeStampToken;
 import org.bouncycastle.util.Selector;
 import org.bouncycastle.util.Store;
-import org.bouncycastle.util.StoreException;
 
 /**
  * This will get the signature(s) from the document, do some verifications and
@@ -286,12 +285,11 @@ public final class ShowSignature
      * @param sig the PDF signature (the /V dictionary)
      * @throws CertificateException
      * @throws CMSException
-     * @throws StoreException
      * @throws OperatorCreationException
      * @throws IOException
      */
     private void verifyPKCS7(byte[] byteArray, COSString contents, PDSignature sig)
-            throws CMSException, CertificateException, StoreException, OperatorCreationException,
+            throws CMSException, CertificateException, OperatorCreationException,
                    NoSuchAlgorithmException, NoSuchProviderException, TSPException, IOException
     {
         // inspiration:
@@ -393,7 +391,7 @@ public final class ShowSignature
     }
 
     private void validateTimestampToken(TimeStampToken timeStampToken)
-            throws StoreException, IOException, CertificateException, TSPException, OperatorCreationException
+            throws IOException, CertificateException, TSPException, OperatorCreationException
     {
         // https://stackoverflow.com/questions/42114742/
         Collection<X509CertificateHolder> tstMatches =



Mime
View raw message