public class FoxitDRMHandler.CryptionParams
extends java.lang.Object
CryptionParams
represents the cryption parameters used by Foxit DRM encryption and decryption.Modifier and Type | Field and Description |
---|---|
int |
cipher
Cipher type.
|
java.lang.String |
fileID
File identity code.
|
java.lang.String |
initialKey
Initial key value.
|
boolean |
isOwner
A
boolean value that indicates to open PDF file as owner or user. |
int |
keyLen
The key length in bytes.
|
long |
userPermission
User permission flags.
|
Constructor and Description |
---|
CryptionParams() |
public boolean isOwner
boolean
value that indicates to open PDF file as owner or user.
true
means owner, or false
means user.
public long userPermission
Please refer to constant definitions
and this should be one or a combination of these constants.PERMISSION_XXX
public int cipher
It should be one of the followings:
public int keyLen
For
cipher, the key length should be in the range from 5 to 16, including 5 and 16.
For EncryptionParams.CIPHER_RC4
cipher, the key length can be 16 or 32.EncryptionParams.CIPHER_AES
public java.lang.String fileID
This can be empty but its usage is highly recommended.
public java.lang.String initialKey
This can be empty but its usage is highly recommended.