lookup method

  1. @override
Future<CredentialParams?> lookup(
  1. String? correlationId,
  2. String? key
)
override

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;
}