Creates a new secure store (a vault).
+ (SUPDataVault*)createVault:(NSString*)name withPassword:(NSString*)password withSalt:(NSString*)salt;
Returns the newly created instance of the DataVault with the provided ID. The returned DataVault is in the unlocked state with default configuration values. To change the default configuration values, you can immediately call the "set" methods for the values you want to change.
If a vault already exists with the same name, a SUPDataVaultException is thrown with the reason kDataVaultExceptionReasonAlreadyExists.
@try { if(![SUPDataVault vaultExists:@"myVault"]) { oVault = [SUPDataVault createVault:@"myVault" withPassword:@"goodPassword" withSalt:@"goodSalt"]; } } @catch ( SUPDataVaultException *e ) { NSNumber* errCode = (NSNumber *)[[e userInfo] objectForKey:@”ErrorCode”]; NSString* errMsg = (NSString *)[[e userInfo] objectForKey:@”ErrorMessage”]; NSLog(@"SUPDataVaultException: Code: %d , Message: %@",[errCode intValue], errMsg); }