Unlocks the vault.
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.
- (void)unlock:(NSString*)password withSalt:(NSString*)salt;
If an incorrect password or salt is used, a SUPDataVaultException is thrown with the reason kDataVaultExceptionReasonInvalidPassword.
@try { [oVault unlock:@"password" withSalt:@"salt"]; } @catch(SUPDataVaultException *e) { NSLog(@"Exception will be thrown for bad password"); }