Foxit PDF SDK for HarmonyOS  3.0
Envelope Class Reference
Inheritance diagram for Envelope:
NativeObjectWrapper

Public Member Functions

 constructor (buffer, size)
 Constructor, from a buffer of envelope data which represents PKCS#12 in binary. More...
 
 constructor (cert_file, permission)
 Constructor, from an existing certificate file reader callback. More...
 
 constructor (cert_file_path)
 Constructor, from an existing certificate file path. More...
 
 constructor (cert_file_path, permission)
 Constructor, from an existing certificate file path. More...
 
 constructor (other)
 Constructor, with another envelope object.
 
 constructor (r)
 
 GetDecryptionKey (p12_file_path, password)
 Get the decryption key. More...
 
- Public Member Functions inherited from NativeObjectWrapper
 constructor (r)
 
 GetPointerAsNumber ()
 

Detailed Description

This class represents data of an envelope which would be used in certificate encryption.

Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

Member Function Documentation

◆ constructor() [1/5]

Envelope.constructor ( buffer  ,
size   
)

Constructor, from a buffer of envelope data which represents PKCS#12 in binary.

Parameters
[in]bufferA buffer of envelope data which represents PKCS#12 in binary.
[in]sizeThe size of the buffer.

◆ constructor() [2/5]

Envelope.constructor ( cert_file  ,
permission   
)

Constructor, from an existing certificate file reader callback.

Parameters
[in]cert_fileAn object of ReaderCallback of an existing certificate file(.cer file). It should not be empty.
[in]permissionA CertPermission object.

◆ constructor() [3/5]

Envelope.constructor ( cert_file_path  )

Constructor, from an existing certificate file path.

Parameters
[in]cert_file_pathA full path of an existing certificate file(.cer file). It should not be an empty string.

◆ constructor() [4/5]

Envelope.constructor ( cert_file_path  ,
permission   
)

Constructor, from an existing certificate file path.

Parameters
[in]cert_file_pathA full path of an existing certificate file(.cer file). It should not be an empty string.
[in]permissionA CertPermission object.

◆ constructor() [5/5]

Envelope.constructor ( )

@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.

Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

◆ GetDecryptionKey()

Envelope.GetDecryptionKey ( p12_file_path  ,
password   
)

Get the decryption key.

Parameters
[in]p12_file_pathA full path of a .p12 file. It should not be an empty string.
[in]passwordThe password string for .p12 file.
Returns
The decryption key.
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.