RecipientInfo Event

Fired for each recipient certificate of the encrypted message.

Syntax

ANSI (Cross Platform)
virtual int FireRecipientInfo(AS2ReceiverRecipientInfoEventParams *e);
typedef struct {
const char *Issuer;
const char *SerialNumber;
const char *SubjectKeyIdentifier;
const char *EncryptionAlgorithm; int reserved; } AS2ReceiverRecipientInfoEventParams; Unicode (Windows) virtual INT FireRecipientInfo(AS2ReceiverRecipientInfoEventParams *e);
typedef struct {
LPCWSTR Issuer;
LPCWSTR SerialNumber;
LPCWSTR SubjectKeyIdentifier;
LPCWSTR EncryptionAlgorithm; INT reserved; } AS2ReceiverRecipientInfoEventParams;
- (void)onRecipientInfo:(NSString*)issuer :(NSString*)serialNumber :(NSString*)subjectKeyIdentifier :(NSString*)encryptionAlgorithm;
#define EID_AS2RECEIVER_RECIPIENTINFO 6

virtual INT IPWORKSEDI_CALL FireRecipientInfo(LPSTR &lpszIssuer, LPSTR &lpszSerialNumber, LPSTR &lpszSubjectKeyIdentifier, LPSTR &lpszEncryptionAlgorithm);

Remarks

When ParseRequest or ProcessRequest has been called on a valid encrypted message, this event will fire for each recipient certificate that the message has been encrypted for.

Issuer is the subject of the issuer certificate.

SerialNumber is the serial number of the encryption certificate.

SubjectKeyIdentifier is the X.509 subjectKeyIdentifier extension value of the certificate used to sign the message encoded as a hex string.

EncryptionAlgorithm is the encryption algorithm used to encrypt the message. Possible values are:

  • "3DES"
  • "DES"
  • "RC2CBC40"
  • "RC2CBC64"
  • "RC2CBC128" or "RC2"
  • "AESCBC128" or "AES"
  • "AESCBC192"
  • "AESCBC256"

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]