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 2018/10/30 04:32:11 UTC
svn commit: r1845192 -
/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Author: tilman
Date: Tue Oct 30 04:32:11 2018
New Revision: 1845192
URL: http://svn.apache.org/viewvc?rev=1845192&view=rev
Log:
PDFBOX-4071: remove the declaration of thrown exception 'org.bouncycastle.util.StoreException' which is a runtime exception
Modified:
pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java?rev=1845192&r1=1845191&r2=1845192&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java (original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java Tue Oct 30 04:32:11 2018
@@ -79,7 +79,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
@@ -280,13 +279,12 @@ public final class ShowSignature
* @param contents the /Contents field as a COSString
* @param sig the PDF signature (the /V dictionary)
* @throws CMSException
- * @throws StoreException
* @throws OperatorCreationException
* @throws GeneralSecurityException
* @throws CertificateVerificationException
*/
private void verifyPKCS7(byte[] byteArray, COSString contents, PDSignature sig)
- throws CMSException, StoreException, OperatorCreationException,
+ throws CMSException, OperatorCreationException,
CertificateVerificationException, GeneralSecurityException,
TSPException, IOException
{
@@ -397,7 +395,7 @@ public final class ShowSignature
private void verifyCertificateChain(Store<X509CertificateHolder> certificatesStore,
X509Certificate certFromSignedData, Date signDate)
- throws CertificateVerificationException, StoreException, CertificateException
+ throws CertificateVerificationException, CertificateException
{
// Verify certificate chain (new since 10/2018)
// Please post bad PDF files that succeed and
@@ -418,7 +416,7 @@ public final class ShowSignature
}
private void validateTimestampToken(TimeStampToken timeStampToken)
- throws TSPException, CertificateException, StoreException, OperatorCreationException, IOException
+ throws TSPException, CertificateException, OperatorCreationException, IOException
{
// https://stackoverflow.com/questions/42114742/
Collection<X509CertificateHolder> tstMatches =