]> git.saurik.com Git - apple/security.git/blob - Keychain/MyKeychain.h
Security-57031.1.35.tar.gz
[apple/security.git] / Keychain / MyKeychain.h
1 //
2 // MyKeychain.h
3 // KCSync
4 //
5 // Created by John Hurley on 10/3/12.
6 // Copyright (c) 2012 john. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 extern const NSString *kItemPasswordKey;
12 extern const NSString *kItemAccountKey;
13 extern const NSString *kItemNameKey;
14
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;
22
23 - (void)setPasswordFull:(NSString *)account service:(NSString *)service password:(NSString *) thePassword;
24 - (void)clearAllKeychainItems;
25
26 @end