PskCredentialsCallback typedef

PskCredentialsCallback = PskCredentials Function(String? identityHint)

Function signature for a callback function for retrieving/generating PskCredentials.

As the format of the identityHint is not well-defined, this parameter can probably be ignored in most cases, when both the identity and the key are known in advance.

Implementation

typedef PskCredentialsCallback = PskCredentials Function(
  String? identityHint,
);