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