Inherits SystemIDisposable.
This class represents some data used for class StdSecurityHandler.
◆ StdEncryptData() [1/2]
foxit.pdf.StdEncryptData.StdEncryptData |
( |
bool |
is_encrypt_metadata, |
|
|
int |
user_permissions, |
|
|
SecurityHandler.CipherType |
cipher, |
|
|
int |
key_length |
|
) |
| |
|
inline |
Constructor, with parameters.
- 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
For e_CipherAES cipher, this value should be 16 (as AES-128) or 32 (as AES-256, only supported in PDF 2.0).
|
◆ StdEncryptData() [2/2]
◆ Set()
void foxit.pdf.StdEncryptData.Set |
( |
bool |
is_encrypt_metadata, |
|
|
int |
user_permissions, |
|
|
SecurityHandler.CipherType |
cipher, |
|
|
int |
key_length |
|
) |
| |
|
inline |
Set value.
- 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 16.
For e_CipherAES cipher, this value should be 16 (as AES-128) or 32 (as AES-256, only supported in PDF 2.0).
|
- Returns
- None.