Creates a new instance of the credential store.
(optional) configuration with credential parameters.
Configures component by passing configuration parameters.
configuration parameters to be set.
Lookups credential parameters by its key.
(optional) transaction id to trace execution through call chain.
a key to uniquely identify the credential parameters.
callback function that receives found credential parameters or error.
Reads credentials from configuration parameters. Each section represents an individual CredentialParams
configuration parameters to be read
Stores credential parameters into the store.
(optional) transaction id to trace execution through call chain.
a key to uniquely identify the credential parameters.
a credential parameters to be stored.
callback function that receives an error or null for success.
Generated using TypeDoc
Credential store that keeps credentials in memory.
Configuration parameters
ICredentialStore
CredentialParams
Example
let config = ConfigParams.fromTuples( "key1.user", "jdoe", "key1.pass", "pass123", "key2.user", "bsmith", "key2.pass", "mypass" ); let credentialStore = new MemoryCredentialStore(); credentialStore.readCredentials(config); credentialStore.lookup("123", "key1", (err, credential) => { // Result: user=jdoe;pass=pass123 });