Inherits SystemIDisposable.
Public Member Functions | |
DRMEncryptData (bool is_encrypt_metadata, string sub_filter, SecurityHandler.CipherType cipher, int key_length, bool is_owner, int user_permissions) | |
Constructor, with parameters. More... | |
DRMEncryptData () | |
Constructor. | |
DRMEncryptData (DRMEncryptData other) | |
Constructor, with another DRMEncryptData object. More... | |
void | Set (bool is_encrypt_metadata, string sub_filter, SecurityHandler.CipherType cipher, int key_length, bool is_owner, int user_permissions) |
Set value. More... | |
This class represents some data used for class DRMSecurityHandler.
|
inline |
Constructor, with parameters.
is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata |
sub_filter | The sub filter of PDF document. |
cipher | Cipher type. Please refer to e_CipherXXX values 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. For e_CipherAES cipher, this value should be 16 or 32. |
is_owner | true means current user is owner, and false means current user is not owner. |
user_permissions | The user permissions. Please refer to e_PermXXX values and this should be one or combination of these values. |
|
inline |
Constructor, with another DRMEncryptData object.
other | Another DRMEncryptData object. |
|
inline |
Set value.
is_encrypt_metadata | true means to encrypt metadata, and false means not to encrypt metadata |
sub_filter | The sub filter of PDF document. |
cipher | Cipher type. Please refer to e_CipherXXX values 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. For e_CipherAES cipher, this value should be 16 or 32. |
is_owner | true means current user is owner, and false means current user is not owner. |
user_permissions | The user permissions. Please refer to e_PermXXX values and this should be one or combination of these values. |