Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Dec 4, 2014
1 parent e465771 commit f6849e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ To get all items matching a certain service. Note that service and account can b
DTKeychain *keychain = [DTKeychain sharedInstance];
// create a keychain query for generic passwords
NSDictionary *query = [DTKeychainGenericPassword keychainItemQueryForService:@"foo" account:nil];
NSDictionary *query = [DTKeychainGenericPassword keychainItemQueryForService:@"foo"
account:nil];
// retrieve matching keychain items
NSError *error;
Expand All @@ -66,10 +67,11 @@ iOS and OSX Differences

On iOS keychain items are sandboxed by access group. DTKeychain relies on the build-in system security and does not artificially restrict the items you can query for. This means that you can also query other already existing generic password keychain items, like WiFi passwords on OSX.

On OSX the user is asked for permission for each item you are trying to retrieve the secure data (aka password) for, on iOS access is regulated by the accessiblity parameter. On iOS, DTKeychain can retrieve the passwords for queried items. On OSX, you have to make a separate call to retrieveSecuredDataForKeychainItem:error:
On OSX the user is asked for permission for each item you are trying to retrieve the secure data (aka password) for, on iOS access is regulated by the accessiblity parameter. On iOS, DTKeychain can retrieve the passwords for queried items. On OSX, you have to make a separate call to `retrieveSecuredDataForKeychainItem:error:`

```
// only necessary at an opportune moment on OSX, might cause an access prompt alert to appear
// only necessary at an opportune moment on OSX, might cause an
// access prompt alert to appear
NSError *error;
if (![keychain retrieveSecuredDataForKeychainItem:pass error:&error]
{
Expand Down

0 comments on commit f6849e0

Please sign in to comment.