unlock

Unlocks the vault.

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 attempts exceeds the retry limit, the vault is deleted.

The password is validated against the password policy if it has been set using setPasswordPolicy. If the password is not compatible with the password policy, an IncompatiblePassword exception is thrown. In that case, call changePassword to set a new password that is compatible with the password policy.

Syntax

- (void)unlock:(NSString*)password withSalt:(NSString*)salt;

Parameters

Returns

If an incorrect password or salt is used, a SUPDataVaultException is thrown with the reason kDataVaultExceptionReasonInvalidPassword.

Examples