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

Syntax

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

Parameters

Returns

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

Examples