]>
git.saurik.com Git - apple/security.git/blob - RegressionTests/manifeststresstest/Keychain.h
5 // Created by Ben Williamson on 6/2/17.
9 #import <Foundation/Foundation.h>
10 #import <Security/Security.h>
12 @interface Keychain
: NSObject
14 // Should return errSecSuccess or errSecDuplicateItem
15 - (OSStatus
)addItem
:(NSString
*)name value
:(NSString
*)value view
:(NSString
*)view
;
16 - (OSStatus
)addItem
:(NSString
*)name value
:(NSString
*)value view
:(NSString
*)view pRef
:(NSArray
**)result
;
18 // Should return errSecSuccess or errSecItemNotFound
19 - (OSStatus
)updateItemWithName
:(NSString
*)name newValue
:(NSString
*)newValue
;
20 - (OSStatus
)updateItem
:(id
)pRef newValue
:(NSString
*)newValue
;
21 - (OSStatus
)updateItem
:(id
)pRef newName
:(NSString
*)newName
;
22 - (OSStatus
)updateItem
:(id
)pRef newName
:(NSString
*)newName newValue
:(NSString
*)newValue
;
23 - (OSStatus
)deleteItem
:(id
)pRef
;
24 - (OSStatus
)deleteItemWithName
:(NSString
*)name
;
26 // Should return errSecSuccess
27 - (OSStatus
)deleteAllItems
;
29 - (NSDictionary
<NSString
*, NSArray
*> *)getAllItems
;