HeaderParam Event
Fires once for each JOSE header parameter.
Syntax
ANSI (Cross Platform) virtual int FireHeaderParam(JWSHeaderParamEventParams *e);
typedef struct {
const char *Name;
const char *Value;
int DataType; int reserved; } JWSHeaderParamEventParams; Unicode (Windows) virtual INT FireHeaderParam(JWSHeaderParamEventParams *e);
typedef struct {
LPCWSTR Name;
LPCWSTR Value;
INT DataType; INT reserved; } JWSHeaderParamEventParams;
- (void)onHeaderParam:(NSString*)name :(NSString*)value :(int)dataType;
#define EID_JWS_HEADERPARAM 2 virtual INT IPWORKSENCRYPT_CALL FireHeaderParam(LPSTR &lpszName, LPSTR &lpszValue, INT &iDataType);
Remarks
When Verify or Parse is called this event will fire once for each JOSE header parameter.
Name is the name of the parameter.
Value is the value of the parameter.
DataType specifies the JSON data type of the value. Possible values are:
- 0 (Object)
- 1 (Array)
- 2 (String)
- 3 (Number)
- 4 (Bool)
- 5 (Null)