Creates a new secure store (a vault).
public static DataVault createVault( String name, String password, String salt )
an arbitrary name for a DataVault instance on this device. This name is effectively the primary key for looking up DataVault instances on the device, so it cannot use the same name as any existing instance. If it does, this method throws an exception with error code INVALID_ARG. The name also cannot be empty or null.
Returns the newly created instance of the DataVault with the provided ID. The returned DataVault is in the unlocked state with default configuration values. To change the default configuration values, you can immediately call the "set" methods for the values you want to change.
If a vault already exists with the same name, a DataVaultException is thrown with the reason ALREADY_EXISTS.
DataVault vault = null; if (!DataVault.vaultExists("myVault")) { vault = DataVault.createVault("myVault", "password", "salt"); } else { vault = DataVault.getVault("myVault"); }