OLD | NEW |
| (Empty) |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_CLIENT_IOS_KEYCHAIN_WRAPPER_H_ | |
6 #define REMOTING_CLIENT_IOS_KEYCHAIN_WRAPPER_H_ | |
7 | |
8 #import <Foundation/Foundation.h> | |
9 | |
10 @class UserInfo; | |
11 | |
12 // Class to abstract the details from how iOS wants to write to the keychain. | |
13 // TODO(nicholss): This will have to be futher refactored when we integrate | |
14 // with the private Google auth. | |
15 @interface KeychainWrapper : NSObject | |
16 | |
17 // Save a refresh token to the keychain. | |
18 - (void)setRefreshToken:(NSString*)refreshToken; | |
19 // Get the refresh token from the keychain, if there is one. | |
20 - (NSString*)refreshToken; | |
21 // Reset the keychain and the cache. | |
22 - (void)resetKeychainItem; | |
23 | |
24 @end | |
25 | |
26 #endif // REMOTING_CLIENT_IOS_KEYCHAIN_WRAPPER_H_ | |
OLD | NEW |