EncryptedDataInfo Event
Fired once for each encrypted element when Decrypt is called.
Syntax
ANSI (Cross Platform) virtual int FireEncryptedDataInfo(XMLEncryptEncryptedDataInfoEventParams *e);
typedef struct {
const char *EncryptedDataId;
int Scope;
const char *MIMEType; int reserved; } XMLEncryptEncryptedDataInfoEventParams; Unicode (Windows) virtual INT FireEncryptedDataInfo(XMLEncryptEncryptedDataInfoEventParams *e);
typedef struct {
LPCWSTR EncryptedDataId;
INT Scope;
LPCWSTR MIMEType; INT reserved; } XMLEncryptEncryptedDataInfoEventParams;
- (void)onEncryptedDataInfo:(NSString*)encryptedDataId :(int)scope :(NSString*)MIMEType;
#define EID_XMLENCRYPT_ENCRYPTEDDATAINFO 1 virtual INT IPWORKSENCRYPT_CALL FireEncryptedDataInfo(LPSTR &lpszEncryptedDataId, INT &iScope, LPSTR &lpszMIMEType);
Remarks
This event fires once for each encrypted element in the XML document when Decrypt is called. The parameters of this event provide information about the encrypted data. Additionally, the KeyName setting may be queried to identify the encryption key. SymmetricKey may be set from within this event.
EncryptedDataId is the Id of the encrypted data (if any).
Scope indicates the scope of the encrypted data. This defines whether the entire XML element was encrypted, or only the content. Possible values are:
0 | Element |
1 | Content |
MIMEType holds the MIME type of the encrypted data (if any). For example: "image/png".