Merge pull request #10 from gunyarakun/fix-invalid-return
[cocotron.git] / Security / SecKeychainItem.h
blob54c19078a2375ecee7ca3da4718504a6c8a7d5b6
1 //
2 // SecKeychainItem.h
3 // Security
4 //
5 // Created by Christopher Lloyd on 2/12/10.
6 // Copyright 2010 __MyCompanyName__. All rights reserved.
7 //
9 #import <Foundation/Foundation.h>
10 #import <Security/Security.h>
12 @interface SecKeychainItem : NSObject {
13 SecItemClass _itemClass;
14 SecKeychainAttributeList *_attributeList;
15 UInt32 _length;
16 void *_bytes;
17 NSString *_guid;
18 SecKeychainRef _keychain;
19 SecAccessRef _access;
22 - initWithItemClass:(SecItemClass)itemClass attributeList:(SecKeychainAttributeList *)attributeList length:(UInt32)length bytes:(const void *)bytes;
24 - (SecItemClass)itemClass;
25 - (SecKeychainAttributeList *)attributeList;
26 - (UInt32)blobLength;
27 - (void *)blobBytes;
29 - (NSString *)GUID;
30 - (SecKeychainRef)keychain;
31 - (SecAccessRef)access;
33 - (void)setGUID:(NSString *)value;
34 - (void)setKeychain:(SecKeychainRef)keychain;
35 - (void)setAccess:(SecAccessRef)access;
37 - (BOOL)isMatchToAttributeList:(const SecKeychainAttributeList *)other;
39 - (void)modifyAttributeList:(const SecKeychainAttributeList *)attributeList length:(UInt32)length bytes:(const void *)bytes;
41 - (void)copyAttributeInfo:(SecKeychainAttributeInfo *)info itemClass:(SecItemClass *)itemClass attributeList:(SecKeychainAttributeList **)attributeList length:(UInt32 *)length bytes:(void **)bytes;
43 @end