|
|
static | e_ModifyOwnerPassword |
| | If set, only owner password will be modified during encryption process.
|
| |
| static | e_ModifyPermission |
| | (Only for AES-256) Enumeration for modify flag used to decide which security data or password will be modified during encryption process More...
|
| |
|
static | e_ModifyUserPassword |
| | If set, user password and owner password will be modified during encryption process.
|
| |
Static Public Attributes inherited from SecurityHandler |
|
static | e_CipherAES |
| | Use AES encryption algorithm, with the key length be 16 bytes (as AES-128) or 32 bytes (as AES-256, only supported in PDF 2.0).
|
| |
| static | e_CipherNone |
| | Enumeration for Encryption Algorithm. More...
|
| |
|
static | e_CipherRC4 |
| | Use RC4 encryption algorithm, with the key length between 5 bytes and 16 bytes.
|
| |
◆ constructor()
| StdSecurityHandler.constructor |
( |
r |
| ) |
|
@constructor
- Parameters
-
| {NativeObjectReference} | r - The native object reference to wrap |
@description Creates a new wrapper instance around a native C++ object. The wrapper manages the object's lifecycle according to the ownership rules.
◆ Initialize()
| StdSecurityHandler.Initialize |
( |
encrypt_data |
, |
|
|
user_password |
, |
|
|
owner_password |
|
|
) |
| |
◆ InitializeW()
| StdSecurityHandler.InitializeW |
( |
encrypt_data |
, |
|
|
user_password |
, |
|
|
owner_password |
|
|
) |
| |
◆ SetAES256ModifyFlags()
| StdSecurityHandler.SetAES256ModifyFlags |
( |
modify_flags |
| ) |
|
(Only for AES-256) Set modify flags to decide which security data or password will be modified during encryption process.
Modify flags are useful only when a PDF document has been encrypted by AES-256 and current StdSecurityHandler object is to be used to modify some security data or password for this PDF document. For other case, these modify flags will be ignored during encryption process. Security data and passwords are set through function StdSecurityHandler.InitializeW. If this function has not been called by current StdSecurityHandler object, that means to modify all the security data and password by default.
- Parameters
-
| [in] | modify_flags | Modify flags used to decide which security data or password will be modified during encryption process. Please refer to values starting from StdSecurityHandler.e_ModifyPermission and this should be one or combination of these values. |
- Returns
- None.
- Examples
- /Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.
◆ e_ModifyPermission
| StdSecurityHandler.e_ModifyPermission |
|
static |