lookup method
Lookups credential parameters by its key.
correlationId
(optional) transaction id to trace execution through call chain.key
a key to uniquely identify the credential parameters. Return Future that receives found credential parameters Throw error.
Implementation
@override
Future<CredentialParams?> lookup(String? correlationId, String? key) async {
var credential = _items[key];
if (credential is String) {
return CredentialParams.fromString(credential);
}
return credential;
}