Class StandardDecryptionMaterial
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.encryption.DecryptionMaterial
-
- org.apache.pdfbox.pdmodel.encryption.StandardDecryptionMaterial
-
public class StandardDecryptionMaterial extends DecryptionMaterial
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);
- Version:
- $Revision: 1.2 $
- Author:
- Benoit Guillon (benoit.guillon@snv.jussieu.fr)
-
-
Constructor Summary
Constructors Constructor Description StandardDecryptionMaterial(java.lang.String pwd)
Create a new standard decryption material with the given password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPassword()
Returns the password.
-