Home » pdfbox-1.1.0-src » org.apache.pdfbox.encryption » [javadoc | source]
org.apache.pdfbox.encryption
public class: DocumentEncryption [javadoc | source]
java.lang.Object
   org.apache.pdfbox.encryption.DocumentEncryption
Deprecated! use - the new security API instead.

This class will deal with encrypting/decrypting a document.
Constructor:
 public DocumentEncryption(PDDocument doc) 
    Constructor.
    Parameters:
    doc - The document to decrypt.
 public DocumentEncryption(COSDocument doc) 
    Constructor.
    Parameters:
    doc - The document to decrypt.
Method from org.apache.pdfbox.encryption.DocumentEncryption Summary:
decrypt,   decryptDocument,   initForEncryption
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.encryption.DocumentEncryption Detail:
 public  void decrypt(Object obj,
    long objNum,
    long genNum) throws CryptographyException, IOException 
      Deprecated!
    This will dispatch to the correct method.
 public  void decryptDocument(String password) throws CryptographyException, IOException, InvalidPasswordException 
      Deprecated!
    This will decrypt the document.
 public  void initForEncryption() throws CryptographyException, IOException 
      Deprecated!
    This will encrypt the given document, given the owner password and user password. The encryption method used is the standard filter.