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 |
|
a0a843
|
18 |
#import <Foundation/Foundation.h> |
H |
19 |
#import <TwitterCore/TwitterCore.h> |
|
20 |
#import "TWTRAuthenticationConstants.h" |
|
21 |
|
|
22 |
/** |
|
23 |
* The TWTRAuthenticator has been deprecated. Users should use the TWTRSessionStore |
|
24 |
* in favor of the authenticator. |
|
25 |
*/ |
|
26 |
@interface TWTRAuthenticator : NSObject |
|
27 |
|
|
28 |
+ (NSDictionary *)authenticationResponseForAuthType:(TWTRAuthType)authType __attribute__((deprecated("This class is removed in favor of TWTRSessionStore"))); |
|
29 |
+ (void)logoutAuthType:(TWTRAuthType)authType __attribute__((deprecated("This class is removed in favor of TWTRSessionStore"))); |
|
30 |
|
|
31 |
/** |
|
32 |
* Save authentiation information to keychain and to disk. |
|
33 |
* |
|
34 |
* @param authDict Authentication dictionary received from the Twitter API. |
|
35 |
* @param authType The TWTRAuthType of the response being saved. |
|
36 |
* @param error An error object to return information about any error situations encountered. |
|
37 |
* |
|
38 |
* @return Returns YES if everything saved correctly, NO if errors were encountered. |
|
39 |
*/ |
|
40 |
+ (BOOL)saveAuthenticationWithDictionary:(NSDictionary *)authDict forAuthType:(TWTRAuthType)authType error:(out NSError *__autoreleasing *)error __attribute__((deprecated("This class is removed in favor of TWTRSessionStore"))); |
|
41 |
|
|
42 |
@end |