Vault interface
Vault interface is used by the Users class to perform secure storage and retrieval of sensitive credentials.
Signature:
export interface Vault
Properties
Property | Type | Description |
---|---|---|
retrieve | (uuid: string, passphrase: string, backupType: VaultBackupType) => Promise<VaultItem[]> | Retrieve the VaultItem that was backup for the uuid, encrypted with passphrase and backupType |
store | (uuid: string, passphrase: string, backupType: VaultBackupType, item: VaultItem[], metadata: Record<string, string>) => Promise<void> | Store vault item for the uuid, encrypted with the passphrase and backupType |