Wallet ( API)

Overview - Common API - Client API - Admin API - Runtime API

Wallet

Base class representing a wallet (a container of credentials).

Details

  • Module

See also

Method Summary

Name Returns Description
add Promise Add a new credential to the wallet.
contains Promise Check to see if the named credentials are in the wallet.
get Promise Get the named credentials from the wallet.
getWallet Wallet Get the wallet singleton.
list Promise List all of the credentials in the wallet.
remove Promise Remove existing credentials from the wallet.
setWallet void Set the wallet singleton.
update Promise Update existing credentials in the wallet.

Method Details

getWallet

Wallet getWallet( )

Get the wallet singleton.

Returns

Wallet - The wallet singleton, or null if one has not been specified.

Parameters

No parameters

setWallet

void setWallet( Wallet wallet )

Set the wallet singleton.

Parameters

Name Type Optional Description
wallet Wallet false The new wallet singleton.

list

Promise list( )

List all of the credentials in the wallet.

Returns

Promise - A promise that is resolved with an array of credential names, or rejected with an error.

Parameters

No parameters

contains

Promise contains( string name )

Check to see if the named credentials are in the wallet.

Returns

Promise - A promise that is resolved with a boolean; true if the named credentials are in the wallet, false otherwise.

Parameters

Name Type Optional Description
name string false The name of the credentials.

get

Promise get( string name )

Get the named credentials from the wallet.

Returns

Promise - A promise that is resolved with the named credentials, or rejected with an error.

Parameters

Name Type Optional Description
name string false The name of the credentials.

add

Promise add( string name, string value )

Add a new credential to the wallet.

Returns

Promise - A promise that is resolved when complete, or rejected with an error.

Parameters

Name Type Optional Description
name string false The name of the credentials.
value string false The credentials.

update

Promise update( string name, string value )

Update existing credentials in the wallet.

Returns

Promise - A promise that is resolved when complete, or rejected with an error.

Parameters

Name Type Optional Description
name string false The name of the credentials.
value string false The credentials.

remove

Promise remove( string name )

Remove existing credentials from the wallet.

Returns

Promise - A promise that is resolved when complete, or rejected with an error.

Parameters

Name Type Optional Description
name string false The name of the credentials.