2010-03-04 20:49:42 +00:00
|
|
|
//
|
|
|
|
// SecKeychain.h
|
|
|
|
// Security
|
|
|
|
//
|
|
|
|
// Created by Christopher Lloyd on 2/12/10.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <Security/Security.h>
|
|
|
|
|
|
|
|
@class SecKeychainCursor;
|
|
|
|
|
|
|
|
@interface SecKeychain : NSObject {
|
2015-05-24 00:15:45 +00:00
|
|
|
NSArray *_registryPath;
|
2010-03-04 20:49:42 +00:00
|
|
|
}
|
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
+ (SecKeychain *) defaultUserKeychain;
|
2010-03-04 20:49:42 +00:00
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
- (NSString *) createGUID;
|
2010-03-04 20:49:42 +00:00
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
- (SecKeychainCursor *) createCursorForItemClass: (SecItemClass) itemClass;
|
2010-03-04 20:49:42 +00:00
|
|
|
|
2020-05-12 18:51:39 +00:00
|
|
|
- (SecKeychainItemRef) createNextItemAtCursor: (SecKeychainCursor *) cursor
|
|
|
|
attributeList:
|
|
|
|
(const SecKeychainAttributeList *)
|
|
|
|
attributeList;
|
2010-03-04 20:49:42 +00:00
|
|
|
|
2020-05-11 15:52:05 +00:00
|
|
|
- (void) addKeychainItem: (SecKeychainItemRef) item;
|
|
|
|
- (void) removeKeychainItem: (SecKeychainItemRef) item;
|
|
|
|
- (void) modifyKeychainItem: (SecKeychainItemRef) item;
|
2010-03-04 20:49:42 +00:00
|
|
|
|
|
|
|
@end
|