DecryptionInfoNeeded Event
Requests decryption information during decryption, signing, or validation.
Syntax
class PDFSignerDecryptionInfoNeededEventParams { public: bool CancelDecryption(); void SetCancelDecryption(bool bCancelDecryption); int EventRetVal(); void SetEventRetVal(int iRetVal); };
// To handle, connect one or more slots to this signal. void DecryptionInfoNeeded(PDFSignerDecryptionInfoNeededEventParams *e);
// Or, subclass PDFSigner and override this emitter function. virtual int FireDecryptionInfoNeeded(PDFSignerDecryptionInfoNeededEventParams *e) {...}
Remarks
This event is fired when the component needs decryption information to be provided by the user.
Use EncryptionType property to identify the document encryption type used, and then set Password or DecryptionCertificate (DecryptionCertificates) properties accordingly.
The class fires this event repeatedly until suitable decryption information is provided. To terminate the operation, set CancelDecryption to true.