pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1601898 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
Date Wed, 11 Jun 2014 13:43:52 GMT
Author: tilman
Date: Wed Jun 11 13:43:51 2014
New Revision: 1601898

URL: http://svn.apache.org/r1601898
Log:
PDFBOX-1474: PDDocument.decrypt does not throw InvalidPasswordException, as noticed by Josue
Martinez Buenrrostro

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java?rev=1601898&r1=1601897&r2=1601898&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Wed Jun 11
13:43:51 2014
@@ -49,7 +49,6 @@ import org.apache.pdfbox.pdmodel.common.
 import org.apache.pdfbox.pdmodel.common.PDStream;
 import org.apache.pdfbox.pdmodel.encryption.AccessPermission;
 import org.apache.pdfbox.pdmodel.encryption.DecryptionMaterial;
-import org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException;
 import org.apache.pdfbox.pdmodel.encryption.PDEncryption;
 import org.apache.pdfbox.pdmodel.encryption.ProtectionPolicy;
 import org.apache.pdfbox.pdmodel.encryption.SecurityHandler;
@@ -845,11 +844,10 @@ public class PDDocument implements Close
      * 
      * @param password Either the user or owner password.
      *
-     * @throws InvalidPasswordException If the password is not a user or owner password.
      * @throws IOException If there is an error getting the stream data.
      */
     @Deprecated
-    public void decrypt(String password) throws InvalidPasswordException, IOException
+    public void decrypt(String password) throws IOException
     {
         StandardDecryptionMaterial m = new StandardDecryptionMaterial(password);
         openProtection(m);



Mime
View raw message