createVault

Creates a new secure store.

Creates a vault. A unique name is assigned, and after creation, the vault is referenced and accessed by that name. This method also assigns a password and salt value to the vault. If a vault already exists with the same name, this method throws an exception. When created, the vault is in the unlocked state.

Syntax

+ (SUPDataVault*)createVault:(NSString*)name withPassword:(NSString*)password withSalt:(NSString*)salt;

Parameters

Returns

createVault creates a SUPDataVault instance.

If a vault already exists with the same name, a SUPDataVaultException is thrown this with the reason kDataVaultExceptionReasonAlreadyExists.

Examples