Public Member Functions | |
StdEncryptData (boolean is_encrypt_metadata, int user_permissions, int cipher, int key_length) | |
Constructor, with parameters. More... | |
StdEncryptData () | |
Constructor. | |
StdEncryptData (StdEncryptData other) | |
Constructor, with another StdEncryptData object. More... | |
int | getCipher () |
Get cipher type. More... | |
boolean | getIs_encrypt_metadata () |
Get a boolean value to decide whether to encrypt metadata or not. More... | |
int | getKey_length () |
Get the key length, in bytes. More... | |
int | getUser_permissions () |
Get the user permissions. More... | |
void | set (boolean is_encrypt_metadata, int user_permissions, int cipher, int key_length) |
Set value. More... | |
void | setCipher (int value) |
Set cipher type. More... | |
void | setIs_encrypt_metadata (boolean value) |
Set a boolean value to decide whether to encrypt metadata or not. More... | |
void | setKey_length (int value) |
Set the key length, in bytes. More... | |
void | setUser_permissions (int value) |
Set the user permissions. More... | |
This class represents some data used for class StdSecurityHandler.
com.foxit.sdk.pdf.StdEncryptData.StdEncryptData | ( | boolean | is_encrypt_metadata, |
int | user_permissions, | ||
int | cipher, | ||
int | key_length | ||
) |
Constructor, with parameters.
is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata. |
user_permissions | The user permissions. Please refer to values starting from e_PermPrint and this should be one or combination of these values. |
cipher | Cipher type. Please refer to values starting from e_CipherRC4 and this should be one of these values except e_CipherNone. |
key_length | The key length, in bytes. For e_CipherRC4 cipher, this value should be between 5 and 16. The preferred one should be 16. For e_CipherAES cipher, this value should be 16 (as AES-128) or 32 (as AES-256, only supported in PDF 2.0). |
com.foxit.sdk.pdf.StdEncryptData.StdEncryptData | ( | StdEncryptData | other | ) |
Constructor, with another StdEncryptData object.
other | Another StdEncryptData object. |
com.foxit.sdk.pdf.StdEncryptData.getCipher | ( | ) |
Get cipher type.
com.foxit.sdk.pdf.StdEncryptData.getIs_encrypt_metadata | ( | ) |
Get a boolean value to decide whether to encrypt metadata or not.
com.foxit.sdk.pdf.StdEncryptData.getKey_length | ( | ) |
Get the key length, in bytes.
For e_CipherRC4 cipher, this value should be between 5 and 16. The preferred one should be 16.
For e_CipherAES cipher, this value should be 16 (as AES-128) or 32 (as AES-256, only supported in PDF 2.0).
com.foxit.sdk.pdf.StdEncryptData.getUser_permissions | ( | ) |
Get the user permissions.
void com.foxit.sdk.pdf.StdEncryptData.set | ( | boolean | is_encrypt_metadata, |
int | user_permissions, | ||
int | cipher, | ||
int | key_length | ||
) |
Set value.
is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata. |
user_permissions | The user permissions. Please refer to values starting from e_PermPrint and this should be one or combination of these values. |
cipher | Cipher type. Please refer to values starting from e_CipherRC4 and this should be one of these values except e_CipherNone. |
key_length | The key length, in bytes. For e_CipherRC4 cipher, this value should be between 5 and 16. The preferred one should be
|
com.foxit.sdk.pdf.StdEncryptData.setCipher | ( | int | value | ) |
Set cipher type.
[in] | cipher | Cipher type. Please refer to values starting from e_CipherRC4 and this should be one of these values except e_CipherNone. |
com.foxit.sdk.pdf.StdEncryptData.setIs_encrypt_metadata | ( | boolean | value | ) |
Set a boolean value to decide whether to encrypt metadata or not.
[in] | is_encrypt_metadata | A boolean value to decide whether to encrypt metadata or not. true means to encrypt metadata, and false means not to encrypt metadata. |
com.foxit.sdk.pdf.StdEncryptData.setKey_length | ( | int | value | ) |
Set the key length, in bytes.
For e_CipherRC4 cipher, this value should be between 5 and 16. The preferred one should be 16.
For e_CipherAES cipher, this value should be 16 (as AES-128) or 32 (as AES-256, only supported in PDF 2.0).
[in] | key_length | The key length, in bytes. |
com.foxit.sdk.pdf.StdEncryptData.setUser_permissions | ( | int | value | ) |
Set the user permissions.
[in] | user_permissions | The user permissions. Please refer to values starting from e_PermPrint and this should be one or combination of these values. |