createVault

Creates a new secure store.

Creates a vault. A unique name is assigned, and after creation, the vault is referenced and accessed by that name. This method also assigns a password and salt value to the vault. If a vault already exists with the same name, this method throws an exception. When created, the vault is in the unlocked state.

Syntax

public static DataVault createVault(
   String name,
   String password,
   String salt
)

Parameters

Returns

createVault creates a DataVault instance.

If a vault already exists with the same name, a DataVaultException is thrown this with the reason ALREADY_EXISTS.

Examples