Public Member Functions | |
DRMEncryptData (bool is_encrypt_metadata, const String &sub_filter, SecurityHandler::CipherType cipher, int key_length, bool is_owner, uint32 user_permissions) | |
Constructor, with parameters. More... | |
DRMEncryptData () | |
Constructor. | |
DRMEncryptData (const DRMEncryptData &other) | |
Constructor, with another DRMEncryptData object. More... | |
~DRMEncryptData () | |
Destructor. | |
bool | operator!= (const DRMEncryptData &other) const |
Not equal operator. More... | |
DRMEncryptData & | operator= (const DRMEncryptData &other) |
Assign operator. More... | |
bool | operator== (const DRMEncryptData &other) const |
Equal operator. More... | |
void | Set (bool is_encrypt_metadata, const String &sub_filter, SecurityHandler::CipherType cipher, int key_length, bool is_owner, uint32 user_permissions) |
Set value. More... | |
Public Attributes | |
SecurityHandler::CipherType | cipher |
Cipher type. Please refer to values starting from SecurityHandler::e_CipherRC4 and this should be one of these values except SecurityHandler::e_CipherNone. | |
bool | 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. | |
bool | is_owner |
A boolean value to decide whether current user is owner or not. true means current user is owner, and false means current user is not owner. | |
int | key_length |
The key length, in bytes. For SecurityHandler::e_CipherRC4 cipher, this value should be between 5 and 16. For SecurityHandler::e_CipherAES cipher, this value should be 16 or 32. | |
String | sub_filter |
The sub filter of PDF document. | |
uint32 | user_permissions |
The user permissions. Please refer to values starting from PDFDoc::e_PermPrint and this can be one or combination of these values. | |
This class represents some data used for class DRMSecurityHandler.
|
inline |
Constructor, with parameters.
[in] | is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata |
[in] | sub_filter | The sub filter of PDF document. |
[in] | cipher | Cipher type. Please refer to values starting from SecurityHandler::e_CipherRC4 and this should be one of these values except SecurityHandler::e_CipherNone. |
[in] | key_length | The key length, in bytes. For SecurityHandler::e_CipherRC4 cipher, this value should be between 5 and 16. For SecurityHandler::e_CipherAES cipher, this value should be 16 or 32. |
[in] | is_owner | true means current user is owner, and false means current user is not owner. |
[in] | user_permissions | The user permissions. Please refer to values starting from PDFDoc::e_PermPrint and this can be one or combination of these values. |
|
inline |
Constructor, with another DRMEncryptData object.
[in] | other | Another DRMEncryptData object. |
|
inline |
Not equal operator.
[in] | other | Another DRMEncryptData object. This function will check if current object is not equal to this one. |
|
inline |
Assign operator.
[in] | other | Another DRMEncryptData object, whose value would be assigned to current object. |
|
inline |
Equal operator.
[in] | other | Another DRMEncryptData object. This function will check if current object is equal to this one. |
|
inline |
Set value.
[in] | is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata |
[in] | sub_filter | The sub filter of PDF document. |
[in] | cipher | Cipher type. Please refer to values starting from SecurityHandler::e_CipherRC4 and this should be one of these values except SecurityHandler::e_CipherNone. |
[in] | key_length | The key length, in bytes. For SecurityHandler::e_CipherRC4 cipher, this value should be between 5 and 16. For SecurityHandler::e_CipherAES cipher, this value should be 16 or 32. |
[in] | is_owner | true means current user is owner, and false means current user is not owner. |
[in] | user_permissions | The user permissions. Please refer to values starting from PDFDoc::e_PermPrint and this can be one or combination of these values. |