Retrieves a string value from the vault.
- (NSString*)getString:(NSString*)name;
getString returns a string data value, associated with the specified name, from the vault. An exception is thrown if the vault is locked when this method is called.
NSString *retrievedstring = nil;
@try {
[oVault unlock:@"goodPassword" withSalt:@"goodSalt"];
retrievedstring = [oVault getString:@"testString"];
}
@catch (NSException *e) {
NSLog(@"Exception: %@",[e description]);
}
@finally {
[oVault lock];
}