Unlock the vault before changing the its properties or storing anything in it. If the incorrect password or salt is used, this method throws an exception. If the number of unsuccessful unlock attempts exceeds the retry limit, the vault is deleted.
Syntax
public void unlock(String password, String salt)
Parameters
password – The password.
salt – The encryption salt value.
Returns
If the incorrect password or salt is used, a DataVaultException is thrown this with the reason INVALID_PASSWORD.
Examples
Unlocks the data vault. – Once the vault is unlocked you can change the its properties and stored content.
if (vault.isLocked())
{
vault.unlock("password", "salt");
}