DecryptionInfoNeeded Event
Requests decryption information during decryption, signing, or validation.
Syntax
ANSI (Cross Platform) virtual int FireDecryptionInfoNeeded(PDFVerifierDecryptionInfoNeededEventParams *e);
typedef struct {
int CancelDecryption; int reserved; } PDFVerifierDecryptionInfoNeededEventParams; Unicode (Windows) virtual INT FireDecryptionInfoNeeded(PDFVerifierDecryptionInfoNeededEventParams *e);
typedef struct {
BOOL CancelDecryption; INT reserved; } PDFVerifierDecryptionInfoNeededEventParams;
- (void)onDecryptionInfoNeeded:(int*)cancelDecryption;
#define EID_PDFVERIFIER_DECRYPTIONINFONEEDED 2 virtual INT SECUREBLACKBOX_CALL FireDecryptionInfoNeeded(BOOL &bCancelDecryption);
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.