ICredentialStore

Interface for credential stores which are used to store and lookup credentials to authenticate against external services.

Inherits: Factory

Description

The ICredentialStore interface is used to store and look up credentials used to authenticate against external services.

Instance methods

LookupAsync

Lookups credential parameters by its key.

Task<CredentialParams> LookupAsync(string correlationId, stringkey)

  • correlationId: string - (optional) transaction id to trace execution through call chain.
  • key: string - a key to uniquely identify the credential.
  • returns: Task<CredentialParams> - found credential parameters or null if nothing was found.

StoreAsync

Stores credential parameters into the store.

Task StoreAsync(string correlationId, string key, CredentialParams credential)

  • correlationId: string - (optional) transaction id to trace execution through call chain.
  • key: string - a key to uniquely identify the credential.
  • credential: CredentialParams - a credential to be stored.

See also