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