forked from kishikawakatsumi/UICKeyChainStore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUICKeyChainStore.h
executable file
·55 lines (43 loc) · 2.28 KB
/
UICKeyChainStore.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// UICKeyChainStore.h
// UICKeyChainStore
//
// Created by Kishikawa Katsumi on 11/11/20.
// Copyright (c) 2011 Kishikawa Katsumi. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UICKeyChainStore : NSObject
@property (nonatomic, readonly) NSString *service;
@property (nonatomic, readonly) NSString *accessGroup;
+ (NSString *)stringForKey:(NSString *)key;
+ (NSString *)stringForKey:(NSString *)key service:(NSString *)service;
+ (NSString *)stringForKey:(NSString *)key service:(NSString *)service accessGroup:(NSString *)accessGroup;
+ (void)setString:(NSString *)value forKey:(NSString *)key;
+ (void)setString:(NSString *)value forKey:(NSString *)key service:(NSString *)service;
+ (void)setString:(NSString *)value forKey:(NSString *)key service:(NSString *)service accessGroup:(NSString *)accessGroup;
+ (NSData *)dataForKey:(NSString *)key;
+ (NSData *)dataForKey:(NSString *)key service:(NSString *)service;
+ (NSData *)dataForKey:(NSString *)key service:(NSString *)service accessGroup:(NSString *)accessGroup;
+ (void)setData:(NSData *)data forKey:(NSString *)key;
+ (void)setData:(NSData *)data forKey:(NSString *)key service:(NSString *)service;
+ (void)setData:(NSData *)data forKey:(NSString *)key service:(NSString *)service accessGroup:(NSString *)accessGroup;
+ (void)removeItemForKey:(NSString *)key;
+ (void)removeItemForKey:(NSString *)key service:(NSString *)service;
+ (void)removeItemForKey:(NSString *)key service:(NSString *)service accessGroup:(NSString *)accessGroup;
+ (void)removeAllItems;
+ (void)removeAllItemsForService:(NSString *)service;
+ (void)removeAllItemsForService:(NSString *)service accessGroup:(NSString *)accessGroup;
+ (UICKeyChainStore *)keyChainStore;
+ (UICKeyChainStore *)keyChainStoreWithService:(NSString *)service;
+ (UICKeyChainStore *)keyChainStoreWithService:(NSString *)service accessGroup:(NSString *)accessGroup;
- (id)init;
- (id)initWithService:(NSString *)service;
- (id)initWithService:(NSString *)service accessGroup:(NSString *)accessGroup;
- (void)setString:(NSString *)string forKey:(NSString *)key;
- (NSString *)stringForKey:(NSString *)key;
- (void)setData:(NSData *)data forKey:(NSString *)key;
- (NSData *)dataForKey:(NSString *)key;
- (void)removeItemForKey:(NSString *)key;
- (void)removeAllItems;
- (void)synchronize;
@end