PdfCustomSecurityHandler class.
More...
#include <pdfix.h>
PdfCustomSecurityHandler class.
A custom security handler.
◆ SetAuthorizationData()
virtual bool PdfCustomSecurityHandler::SetAuthorizationData |
( |
void * |
data | ) |
|
|
pure virtual |
Sets new authorization data e.g. password, key, some kind of secret etc.
- Parameters
-
data | to authorize the document |
- Returns
- true is setting authorization data was successfull, false otherwise
◆ SetAuthorizeOwnerProc()
Sets a user-supplied procedure to call when user wants to authorize owner of the document. see PdfDoc::Authorize
- Parameters
-
proc | A user-supplied callback to authorize the owner of the document |
◆ SetDecryptContentProc()
Sets a user-supplied procedure to call when the data is decrypted.
- Parameters
-
proc | A user-supplied callback to call when the data is decrypted. |
◆ SetDestroyProc()
Sets a user-supplied procedure to call when the object is destoyed.
- Parameters
-
proc | A user-supplied callback to call when the object is destoyed. |
◆ SetEncryptContentProc()
Sets a user-supplied procedure to call when the data is encrypted.
- Parameters
-
proc | A user-supplied callback to call when the data is encrypted. |
◆ SetGetDecryptSizeProc()
Sets a user-supplied procedure to know the size of the decypted data.
- Parameters
-
proc | A user-supplied callback to know the size of the decypted data. |
◆ SetGetEncryptSizeProc()
Sets a user-supplied procedure to know the size of the encypted data.
- Parameters
-
proc | A user-supplied callback to know the size of the encypted data. |
◆ SetGetPermissionsProc()
Sets a user-supplied procedure to call when the permissions are requested from the handler.
- Parameters
-
proc | A user-supplied callback to call when the permissions are requested from the handler. |
◆ SetIsMetadataEncryptedProc()
Sets a user-supplied procedure to know whether to encrypt metadata.
- Parameters
-
proc | A user-supplied callback to know whether to encrypt metadata. |
◆ SetOnInitProc()
Sets a user-supplied procedure to call when the document is authorized.
- Parameters
-
proc | A user-supplied callback to call when the handler is initialized. |
◆ SetSetAuthoziationDataProc()
Sets a user-supplied procedure to call when the SetAuthorizationData is called.
- Parameters
-
proc | A user-supplied callback to call when the SetAuthorizationData is called. |
◆ SetUpdateEncryptDictProc()
Sets a user-supplied procedure to call when the document is saved.
- Parameters
-
proc | A user-supplied callback to fill or updated encryption dicionary. |