hank
2018-06-21 2cfb267ecc1bea8bc564466a1620535018dce77c
commit | author | age
655e66 1 /*
H 2  * Copyright (C) 2017 Twitter, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 /**
19  This header is private to the Twitter Core SDK and not exposed for public SDK consumption
20  */
a0a843 21
H 22 #import <Foundation/Foundation.h>
23 @class TWTRAuthConfig;
24
25 NS_ASSUME_NONNULL_BEGIN
26
27 @interface TWTRAuthConfigStore : NSObject
28
29 - (instancetype)init NS_UNAVAILABLE;
30
31 /**
32  * Initializes the auth config store
33  *
34  * @param nameSpace the namespace to associate with this store.
35  */
36 - (instancetype)initWithNameSpace:(NSString *)nameSpace;
37
38 /**
39  * Saves the given auth config replacing the last saved config.
40  */
41 - (void)saveAuthConfig:(TWTRAuthConfig *)authConfig;
42
43 /**
44  * Returns the auth config object that was last saved or nil
45  * if there is none.
46  */
47 - (nullable TWTRAuthConfig *)lastSavedAuthConfig;
48
49 /**
50  * Removes the last saved auth config.
51  */
52 - (void)forgetAuthConfig;
53
54 @end
55
56 NS_ASSUME_NONNULL_END