]> git.saurik.com Git - apple/security.git/blame - RegressionTests/manifeststresstest/Keychain.h
Security-58286.270.3.0.1.tar.gz
[apple/security.git] / RegressionTests / manifeststresstest / Keychain.h
CommitLineData
866f8763
A
1//
2// Keychain.h
3// Security
4//
5// Created by Ben Williamson on 6/2/17.
6//
7//
8
9#import <Foundation/Foundation.h>
10#import <Security/Security.h>
11
12@interface Keychain : NSObject
13
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;
17
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;
25
26// Should return errSecSuccess
27- (OSStatus)deleteAllItems;
28
29- (NSDictionary<NSString *, NSArray *> *)getAllItems;
30
31@end