pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1843817 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ShowSignature.java
Date Sun, 14 Oct 2018 09:50:49 GMT
Author: tilman
Date: Sun Oct 14 09:50:49 2018
New Revision: 1843817

URL: http://svn.apache.org/viewvc?rev=1843817&view=rev
Log:
PDFBOX-3017: add exception for when windows isn't used

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=1843817&r1=1843816&r2=1843817&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
Sun Oct 14 09:50:49 2018
@@ -23,6 +23,7 @@ import java.io.IOException;
 import java.security.GeneralSecurityException;
 import java.security.InvalidAlgorithmParameterException;
 import java.security.KeyStore;
+import java.security.KeyStoreException;
 import java.security.MessageDigest;
 import java.security.NoSuchAlgorithmException;
 import java.security.NoSuchProviderException;
@@ -355,9 +356,9 @@ public final class ShowSignature
                 rootCertificates.add(trustAnchor.getTrustedCert());
             }
         }
-        catch (InvalidAlgorithmParameterException ex)
+        catch (InvalidAlgorithmParameterException | KeyStoreException ex)
         {
-            // not on windows
+            // empty or not windows
         }
 
         return rootCertificates;



Mime
View raw message