]>
git.saurik.com Git - apple/security.git/blob - Keychain/MyKeychain.h
5 // Created by John Hurley on 10/3/12.
6 // Copyright (c) 2012 john. All rights reserved.
9 #import <Foundation/Foundation.h>
11 extern const NSString
*kItemPasswordKey
;
12 extern const NSString
*kItemAccountKey
;
13 extern const NSString
*kItemNameKey
;
15 @interface MyKeychain
: NSObject
16 + (MyKeychain
*) sharedInstance
;
17 - (void) setPassword
: (NSString
*) password
;
18 - (NSString
*) fetchPassword
;
19 - (void)setItem
:(NSDictionary
*)newItem
;
20 - (NSMutableArray
*) fetchDictionaryWithQuery
:(NSMutableDictionary
*)query
;
21 - (NSMutableArray
*) fetchDictionaryAll
;
23 - (void)setPasswordFull
:(NSString
*)account service
:(NSString
*)service password
:(NSString
*) thePassword
;
24 - (void)clearAllKeychainItems
;