store method

  1. @override
Future store(
  1. String? correlationId,
  2. String key,
  3. CredentialParams? credential
)
override

Stores credential parameters into the store.

  • correlationId (optional) transaction id to trace execution through call chain.
  • key a key to uniquely identify the credential parameters.
  • credential a credential parameters to be stored. Return Future that receives an null for success. Throw error

Implementation

@override
Future store(
    String? correlationId, String key, CredentialParams? credential) async {
  if (credential != null) {
    _items[key] = credential;
  } else {
    _items.remove(key);
  }
}