ClientPskCallback typedef
ClientPskCallback =
PskCredentials? Function(Uri uri, Form? form, String? identityHint)
Function signature for a synchronous callback for providing client PskCredentials at runtime.
If no credentials can be retrieved, a null
value should be returned (which
will lead to the throw of an exception in the respective binding). This
behavior might change in future versions of dart_wot
.
Users can retrieve or generate credentials based on the endpoint's uri
or
an identityHint
that might be given by the server. In the case of
interactions, the corresponding Form is also provided.
Implementation
typedef ClientPskCallback = PskCredentials? Function(
Uri uri,
Form? form,
String? identityHint,
);