mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
44 lines
1.3 KiB
Objective-C
44 lines
1.3 KiB
Objective-C
//
|
|
// SecKeychainItem.h
|
|
// Security
|
|
//
|
|
// Created by Christopher Lloyd on 2/12/10.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Security/Security.h>
|
|
|
|
@interface SecKeychainItem : NSObject {
|
|
SecItemClass _itemClass;
|
|
SecKeychainAttributeList *_attributeList;
|
|
UInt32 _length;
|
|
void *_bytes;
|
|
NSString *_guid;
|
|
SecKeychainRef _keychain;
|
|
SecAccessRef _access;
|
|
}
|
|
|
|
- initWithItemClass:(SecItemClass)itemClass attributeList:(SecKeychainAttributeList *)attributeList length:(UInt32)length bytes:(const void *)bytes;
|
|
|
|
- (SecItemClass)itemClass;
|
|
- (SecKeychainAttributeList *)attributeList;
|
|
- (UInt32)blobLength;
|
|
- (void *)blobBytes;
|
|
|
|
- (NSString *)GUID;
|
|
- (SecKeychainRef)keychain;
|
|
- (SecAccessRef)access;
|
|
|
|
- (void)setGUID:(NSString *)value;
|
|
- (void)setKeychain:(SecKeychainRef)keychain;
|
|
- (void)setAccess:(SecAccessRef)access;
|
|
|
|
- (BOOL)isMatchToAttributeList:(const SecKeychainAttributeList *)other;
|
|
|
|
- (void)modifyAttributeList:(const SecKeychainAttributeList *)attributeList length:(UInt32)length bytes:(const void *)bytes;
|
|
|
|
- (void)copyAttributeInfo:(SecKeychainAttributeInfo *)info itemClass:(SecItemClass *)itemClass attributeList:(SecKeychainAttributeList **)attributeList length:(UInt32 *)length bytes:(void **)bytes;
|
|
|
|
@end
|