DecryptionInfoNeeded Event
Requests decryption information from the application.
Syntax
ANSI (Cross Platform) virtual int FireDecryptionInfoNeeded(XMLDecryptorDecryptionInfoNeededEventParams *e);
typedef struct {
int CancelDecryption; int reserved; } XMLDecryptorDecryptionInfoNeededEventParams; Unicode (Windows) virtual INT FireDecryptionInfoNeeded(XMLDecryptorDecryptionInfoNeededEventParams *e);
typedef struct {
BOOL CancelDecryption; INT reserved; } XMLDecryptorDecryptionInfoNeededEventParams;
- (void)onDecryptionInfoNeeded:(int*)cancelDecryption;
#define EID_XMLDECRYPTOR_DECRYPTIONINFONEEDED 1 virtual INT SECUREBLACKBOX_CALL FireDecryptionInfoNeeded(BOOL &bCancelDecryption);
Remarks
This event is fired when the component needs decryption information (the private key) from the user.
Use EncryptKey, Config["KeyName"] and KeyEncryptionType properties to identify the encryption type and then set DecryptionKey or KeyDecryptionKey or KeyDecryptionCertificate properties accordingly.
if CancelDecryption property is set to true value (default value) then decryption would fail if provided key/certificate is invalid. Otherwise this event would be fired again.