|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.encryption.ProtectionPolicy
public abstract class ProtectionPolicy
This class represents the protection policy to apply to a document. Objects implementing this abstract class can be passed to the protect method of PDDocument to protect a document.
PDDocument.protect(ProtectionPolicy)
Constructor Summary | |
---|---|
ProtectionPolicy()
|
Method Summary | |
---|---|
int |
getEncryptionKeyLength()
Get the length of the secrete key that will be used to encrypt document data. |
void |
setEncryptionKeyLength(int l)
set the length in (bits) of the secret key that will be used to encrypt document data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtectionPolicy()
Method Detail |
---|
public void setEncryptionKeyLength(int l)
l
- the length in bits (must be 40 or 128)public int getEncryptionKeyLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |