PasswordNeeded Event
This event is fired when a decryption password is needed.
Syntax
ANSI (Cross Platform) virtual int FirePasswordNeeded(CertificateManagerPasswordNeededEventParams *e);
typedef struct {
char *Password;
int Cancel; int reserved; } CertificateManagerPasswordNeededEventParams; Unicode (Windows) virtual INT FirePasswordNeeded(CertificateManagerPasswordNeededEventParams *e);
typedef struct {
LPWSTR Password;
BOOL Cancel; INT reserved; } CertificateManagerPasswordNeededEventParams;
- (void)onPasswordNeeded:(NSString**)password :(int*)cancel;
#define EID_CERTIFICATEMANAGER_PASSWORDNEEDED 4 virtual INT SECUREBLACKBOX_CALL FirePasswordNeeded(LPSTR &lpszPassword, BOOL &bCancel);
Remarks
The class fires this event when a password is needed to decrypt a certificate or a private key.
In the handler of this event, assign the password to the Password parameter, or set Cancel to true to abort the operation.