SecureBlackbox 2020 C++ Edition

Questions / Feedback?

KeySecretNeeded Event

Requests the key secret from the application.

Syntax

ANSI (Cross Platform)
virtual int FireKeySecretNeeded(DCAuthWebServerKeySecretNeededEventParams *e);
typedef struct {
int64 ConnectionId;
const char *KeyId;
char *KeySecret; int reserved; } DCAuthWebServerKeySecretNeededEventParams; Unicode (Windows) virtual INT FireKeySecretNeeded(DCAuthWebServerKeySecretNeededEventParams *e);
typedef struct {
LONG64 ConnectionId;
LPCWSTR KeyId;
LPWSTR KeySecret; INT reserved; } DCAuthWebServerKeySecretNeededEventParams;
- (void)onKeySecretNeeded:(long long)connectionId :(NSString*)keyId :(NSString**)keySecret;
#define EID_DCAUTHWEBSERVER_KEYSECRETNEEDED 10

virtual INT SECUREBLACKBOX_CALL FireKeySecretNeeded(LONG64 &lConnectionId, LPSTR &lpszKeyId, LPSTR &lpszKeySecret);

Remarks

Subscribe to this event to pass the key secret (a pre-shared request authentication code) to the signing component when it is needed. The authentication combination consists of the KeyId, a non-secret unique key identifier, and the KeySecret, shared by the parties, which should be kept private. This event is an alternative for KeySecret property. Use it when you expect to process requests from requestors with different KeyIds and secrets. If you only expect to receive requests from a single requestor with a known KeyId, providing the key secret via KeyId and KeySecret properties would be an easier route.

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