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 11extern const NSString *kItemPasswordKey; 12extern const NSString *kItemAccountKey; 13extern 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 27