PublicKeyProtectionPolicy, StandardProtectionPolicypublic 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, 128 or 256)public int getEncryptionKeyLength()
Copyright © 2002–2018. All rights reserved.