PDFix SDK  9.0.0
Loading...
Searching...
No Matches
PdfCustomSecurityHandler Struct Referenceabstract

PdfCustomSecurityHandler class. More...

#include <pdfix.h>

Inheritance diagram for PdfCustomSecurityHandler:
PdfSecurityHandler

Public Member Functions

virtual bool SetAuthorizationData (void *data)=0
 Sets new authorization data e.g. password, key, some kind of secret etc.
virtual void SetDestroyProc (PdfSecurityDestroyProc proc)=0
 Sets a user-supplied procedure to call when the object is destoyed.
virtual void SetSetAuthoziationDataProc (PdfSecuritySetAuthorizationDataProc proc)=0
 Sets a user-supplied procedure to call when the SetAuthorizationData is called.
virtual void SetOnInitProc (PdfSecurityOnInitProc proc)=0
 Sets a user-supplied procedure to call when the document is authorized.
virtual void SetGetPermissionsProc (PdfSecurityGetPermissionsProc proc)=0
 Sets a user-supplied procedure to call when the permissions are requested from the handler.
virtual void SetIsMetadataEncryptedProc (PdfSecurityIsMetadataEncryptedProc proc)=0
 Sets a user-supplied procedure to know whether to encrypt metadata.
virtual void SetUpdateEncryptDictProc (PdfSecurityUpdateEncryptDictProc proc)=0
 Sets a user-supplied procedure to call when the document is saved.
virtual void SetAuthorizeOwnerProc (PdfSecurityAuthorizeOwnerProc proc)=0
virtual void SetGetDecryptSizeProc (PdfSecurityGetDecryptSizeProc proc)=0
 Sets a user-supplied procedure to know the size of the decypted data.
virtual void SetDecryptContentProc (PdfSecurityDecryptContentProc proc)=0
 Sets a user-supplied procedure to call when the data is decrypted.
virtual void SetGetEncryptSizeProc (PdfSecurityGetEncryptSizeProc proc)=0
 Sets a user-supplied procedure to know the size of the encypted data.
virtual void SetEncryptContentProc (PdfSecurityEncryptContentProc proc)=0
 Sets a user-supplied procedure to call when the data is encrypted.
Public Member Functions inherited from PdfSecurityHandler
virtual int GetFilter (wchar_t *buffer, int len) const =0
virtual void Destroy ()=0
 Destroys digital signature's resources.

Detailed Description

PdfCustomSecurityHandler class.

A custom security handler.

Member Function Documentation

◆ SetAuthorizationData()

virtual bool PdfCustomSecurityHandler::SetAuthorizationData ( void * data)
pure virtual

Sets new authorization data e.g. password, key, some kind of secret etc.

Parameters
datato authorize the document
Returns
true is setting authorization data was successfull, false otherwise

◆ SetAuthorizeOwnerProc()

virtual void PdfCustomSecurityHandler::SetAuthorizeOwnerProc ( PdfSecurityAuthorizeOwnerProc proc)
pure virtual

Sets a user-supplied procedure to call when user wants to authorize owner of the document. see PdfDoc::Authorize

Parameters
procA user-supplied callback to authorize the owner of the document

◆ SetDecryptContentProc()

virtual void PdfCustomSecurityHandler::SetDecryptContentProc ( PdfSecurityDecryptContentProc proc)
pure virtual

Sets a user-supplied procedure to call when the data is decrypted.

Parameters
procA user-supplied callback to call when the data is decrypted.

◆ SetDestroyProc()

virtual void PdfCustomSecurityHandler::SetDestroyProc ( PdfSecurityDestroyProc proc)
pure virtual

Sets a user-supplied procedure to call when the object is destoyed.

Parameters
procA user-supplied callback to call when the object is destoyed.

◆ SetEncryptContentProc()

virtual void PdfCustomSecurityHandler::SetEncryptContentProc ( PdfSecurityEncryptContentProc proc)
pure virtual

Sets a user-supplied procedure to call when the data is encrypted.

Parameters
procA user-supplied callback to call when the data is encrypted.

◆ SetGetDecryptSizeProc()

virtual void PdfCustomSecurityHandler::SetGetDecryptSizeProc ( PdfSecurityGetDecryptSizeProc proc)
pure virtual

Sets a user-supplied procedure to know the size of the decypted data.

Parameters
procA user-supplied callback to know the size of the decypted data.

◆ SetGetEncryptSizeProc()

virtual void PdfCustomSecurityHandler::SetGetEncryptSizeProc ( PdfSecurityGetEncryptSizeProc proc)
pure virtual

Sets a user-supplied procedure to know the size of the encypted data.

Parameters
procA user-supplied callback to know the size of the encypted data.

◆ SetGetPermissionsProc()

virtual void PdfCustomSecurityHandler::SetGetPermissionsProc ( PdfSecurityGetPermissionsProc proc)
pure virtual

Sets a user-supplied procedure to call when the permissions are requested from the handler.

Parameters
procA user-supplied callback to call when the permissions are requested from the handler.

◆ SetIsMetadataEncryptedProc()

virtual void PdfCustomSecurityHandler::SetIsMetadataEncryptedProc ( PdfSecurityIsMetadataEncryptedProc proc)
pure virtual

Sets a user-supplied procedure to know whether to encrypt metadata.

Parameters
procA user-supplied callback to know whether to encrypt metadata.

◆ SetOnInitProc()

virtual void PdfCustomSecurityHandler::SetOnInitProc ( PdfSecurityOnInitProc proc)
pure virtual

Sets a user-supplied procedure to call when the document is authorized.

Parameters
procA user-supplied callback to call when the handler is initialized.

◆ SetSetAuthoziationDataProc()

virtual void PdfCustomSecurityHandler::SetSetAuthoziationDataProc ( PdfSecuritySetAuthorizationDataProc proc)
pure virtual

Sets a user-supplied procedure to call when the SetAuthorizationData is called.

Parameters
procA user-supplied callback to call when the SetAuthorizationData is called.

◆ SetUpdateEncryptDictProc()

virtual void PdfCustomSecurityHandler::SetUpdateEncryptDictProc ( PdfSecurityUpdateEncryptDictProc proc)
pure virtual

Sets a user-supplied procedure to call when the document is saved.

Parameters
procA user-supplied callback to fill or updated encryption dicionary.