commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
#import <FBSDKCoreKit/FBSDKKeychainStoreProtocol.h> |
|
12 |
|
|
13 |
NS_ASSUME_NONNULL_BEGIN |
|
14 |
|
|
15 |
NS_SWIFT_NAME(KeychainStore) |
|
16 |
@interface FBSDKKeychainStore : NSObject <FBSDKKeychainStore> |
|
17 |
|
|
18 |
@property (nonatomic, readonly, copy) NSString *service; |
|
19 |
@property (nullable, nonatomic, readonly, copy) NSString *accessGroup; |
|
20 |
|
|
21 |
- (instancetype)init NS_UNAVAILABLE; |
|
22 |
+ (instancetype)new NS_UNAVAILABLE; |
|
23 |
|
|
24 |
- (instancetype)initWithService:(NSString *)service accessGroup:(nullable NSString *)accessGroup NS_DESIGNATED_INITIALIZER; |
|
25 |
|
|
26 |
- (BOOL)setData:(nullable NSData *)value forKey:(NSString *)key accessibility:(CFTypeRef)accessibility; |
|
27 |
- (nullable NSData *)dataForKey:(NSString *)key; |
|
28 |
|
|
29 |
// hook for subclasses to override keychain query construction. |
|
30 |
- (NSMutableDictionary<NSString *, id> *)queryForKey:(NSString *)key; |
|
31 |
|
|
32 |
@end |
|
33 |
|
|
34 |
NS_ASSUME_NONNULL_END |