PublicKeyProtectionPolicy
, StandardProtectionPolicy
public abstract class ProtectionPolicy
extends java.lang.Object
PDDocument.protect(ProtectionPolicy)
Constructor | Description |
---|---|
ProtectionPolicy() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public void setEncryptionKeyLength(int l)
l
- the length in bits (must be 40 or 128)public int getEncryptionKeyLength()