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 2016/08/13 13:30:02 UTC
svn commit: r1756268 -
/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
Author: tilman
Date: Sat Aug 13 13:30:02 2016
New Revision: 1756268
URL: http://svn.apache.org/viewvc?rev=1756268&view=rev
Log:
PDFBOX-3462: rethrow NoSuchAlgorithmException because IOException constructor not in JDK5
Modified:
pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java?rev=1756268&r1=1756267&r2=1756268&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java Sat Aug 13 13:30:02 2016
@@ -398,7 +398,7 @@ public class PublicKeySecurityHandler ex
catch (NoSuchAlgorithmException e)
{
// happens when using the command line app .jar file
- throw new IOException("Could not find a suitable javax.crypto provider for algorithm " +
+ throw new NoSuchAlgorithmException("Could not find a suitable javax.crypto provider for algorithm " +
s + "; possible reason: using an unsigned .jar file", e);
}
keygenerator.init(128);