public abstract class ProtectionPolicy extends Object
PDDocument.protect(ProtectionPolicy)
Constructor and Description |
---|
ProtectionPolicy() |
Modifier and Type | Method and 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, 128 or 256)public int getEncryptionKeyLength()
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.