MessageTransportSharedSecretHandler

DESCRIPTION

Handler function invoked when a new Shared Secret Transport has received its first message. The message transport will read the Key ID from the JWT header and pass it to this handler. If the JWT does not contain the kid header, the keyId string will be empty. The handler must return a shared secret string matching the key ID to use for the shared secret transport.

DECLARATION

using MessageTransportSharedSecretHandler =
    std::function<std::string(const std::string keyId)>

PARAMETERS

keyId:
The value of the JWT kid header. Empty if the header does not exist

RETURNS

The shared secret corresponding to the key ID