Foxit PDF SDK
|
Public Member Functions | |
virtual SecurityHandler::CipherType | GetCipherType (const PDFDoc &document, const char *sub_filter)=0 |
A callback function used to get the cipher type for encryption algorithm. More... | |
virtual String | GetFileID (const PDFDoc &document, const char *sub_filter)=0 |
A callback function used to get the file identity string. More... | |
virtual String | GetInitialKey (const PDFDoc &document, const char *sub_filter)=0 |
A callback function used to get the initial key to decrypt the DRM protected document. More... | |
virtual uint32 | GetKeyLength (const PDFDoc &document, const char *sub_filter)=0 |
A callback function used to get the length of cipher key. More... | |
virtual PDFDoc::EncryptType | GetSecurityType () |
Get the encryption type of security callback. More... | |
virtual uint32 | GetUserPermissions (const PDFDoc &document, const char *sub_filter)=0 |
A callback function used to get the current user permissions. More... | |
virtual bool | IsOwner (const PDFDoc &document, const char *sub_filter)=0 |
A callback function used to check if current user is the owner of the PDF document. More... | |
![]() | |
virtual void | Release ()=0 |
A callback function used to release current callback object itself. More... | |
This class represents a callback object for Foxit DRM decryption. If user wants to use their own Foxit DRM security callback, user should inherit this callback class and implement the pure virtual functions (as callback functions), and then register their own Foxit DRM security callback object to Foxit PDF SDK by function common::Library::RegisterSecurityCallback with filter "FoxitDRM". Function common::Library::UnregisterSecurityCallback can be called to unregister the security callback object with the registered filter name.
|
pure virtual |
A callback function used to get the cipher type for encryption algorithm.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
|
pure virtual |
A callback function used to get the file identity string.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
|
pure virtual |
A callback function used to get the initial key to decrypt the DRM protected document.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
|
pure virtual |
A callback function used to get the length of cipher key.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
|
inlinevirtual |
Get the encryption type of security callback.
Reimplemented from foxit::pdf::SecurityCallback.
|
pure virtual |
A callback function used to get the current user permissions.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |
|
pure virtual |
A callback function used to check if current user is the owner of the PDF document.
[in] | document | A PDF document object. |
[in] | sub_filter | The sub filter name that specifies the syntax of the encryption dictionary contents. |