Inherits SystemIDisposable.
Public Member Functions | |
StdEncryptData (bool is_encrypt_metadata, int user_permissions, SecurityHandler.CipherType cipher, int key_length) | |
Constructor, with parameters. More... | |
StdEncryptData () | |
Constructor. | |
StdEncryptData (StdEncryptData other) | |
Constructor, with another StdEncryptData. | |
void | Set (bool is_encrypt_metadata, int user_permissions, SecurityHandler.CipherType cipher, int key_length) |
Set value. More... | |
This class represents some data used for class StdSecurityHandler.
|
inline |
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 e_PermXXX values and this should be one or combination of these values. |
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. The preferred one should be
|
|
inline |
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 e_PermXXX values and this should be one or combination of these values. |
cipher | Cipher type. Please refer to e_CipherXXX values and this should be one of these values except {}. |
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). |