Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.encryption » [javadoc | source]
org.apache.pdfbox.pdmodel.encryption
public class: StandardDecryptionMaterial [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.encryption.DecryptionMaterial
      org.apache.pdfbox.pdmodel.encryption.StandardDecryptionMaterial
Represents the necessary information to decrypt a document protected by the standard security handler (password protection). This is only composed of a password. The following example shows how to decrypt a document protected with the standard security handler:
 PDDocument doc = PDDocument.load(in);
 StandardDecryptionMaterial dm = new StandardDecryptionMaterial("password");
 doc.openProtection(dm);
 
Constructor:
 public StandardDecryptionMaterial(String pwd) 
    Create a new standard decryption material with the given password.
    Parameters:
    pwd - The password.
Method from org.apache.pdfbox.pdmodel.encryption.StandardDecryptionMaterial Summary:
getPassword
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.encryption.StandardDecryptionMaterial Detail:
 public String getPassword() 
    Returns the password.