Foxit PDF RDK
CertificateSecurityCallback Class Reference
Inheritance diagram for CertificateSecurityCallback:
SecurityCallback NativeObjectWrapper

Public Member Functions

 GetDecryptionKey (envelope_buffer, envelope_length)
 A callback function used to get the key for decrypting certificate protected PDF document. More...
 
- Public Member Functions inherited from SecurityCallback
 Release ()
 A callback function used to release current callback object itself. More...
 
- Public Member Functions inherited from NativeObjectWrapper
 constructor (r)
 
 GetPointerAsNumber ()
 

Detailed Description

This class represents a callback object for certificate decryption. If user wants to use their own certificate security callback, user should inherit this callback class and implement the pure virtual functions (as callback functions), and then register their own certificate security callback object to Foxit PDF SDK by function Library.RegisterSecurityCallback with filter "Adobe.PubSec". Function Library.UnregisterSecurityCallback can be called to unregister the security callback object with the registered filter name.

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

Member Function Documentation

◆ GetDecryptionKey()

CertificateSecurityCallback.GetDecryptionKey ( envelope_buffer  ,
envelope_length   
)

A callback function used to get the key for decrypting certificate protected PDF document.

Parameters
[in]envelope_bufferA buffer which represents a certificate envelope.
[in]envelope_lengthLength of certificate envelope buffer, in bytes.
Note
User should implement this callback function.
Returns
The decryption key.
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.