commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRGuestAuthRequestSigner.h |
|
3 |
// TwitterCore |
|
4 |
// |
|
5 |
// Created by Kang Chen on 6/25/15. |
|
6 |
// Copyright (c) 2015 Twitter Inc. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
@class TWTRAuthConfig; |
|
10 |
@class TWTRGuestSession; |
|
11 |
|
|
12 |
NS_ASSUME_NONNULL_BEGIN |
|
13 |
|
|
14 |
/** |
|
15 |
* Signer abstracting logic to sign a guest authenticated network request. |
|
16 |
*/ |
|
17 |
@interface TWTRGuestAuthRequestSigner : NSObject |
|
18 |
|
|
19 |
/** |
|
20 |
* Signs the given request with the appropriate guest authentication headers. |
|
21 |
* |
|
22 |
* @param URLRequest The URL request to sign |
|
23 |
* @param session The guest session containing guest tokens required to sign the request |
|
24 |
* |
|
25 |
* @return The signed URL request |
|
26 |
*/ |
|
27 |
+ (NSURLRequest *)signedURLRequest:(NSURLRequest *)URLRequest session:(TWTRGuestSession *)session; |
|
28 |
|
|
29 |
@end |
|
30 |
|
|
31 |
NS_ASSUME_NONNULL_END |