forked from iridia/IRWebAPIKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRWebAPIAuthenticator.h
More file actions
44 lines (25 loc) · 1.35 KB
/
IRWebAPIAuthenticator.h
File metadata and controls
44 lines (25 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// IRWebAPIAuthenticator.h
// IRWebAPIKit
//
// Created by Evadne Wu on 11/21/10.
// Copyright 2010 Iridia Productions. All rights reserved.
//
@class IRWebAPIEngine, IRWebAPICredentials;
@interface IRWebAPIAuthenticator : NSObject
- (id) initWithEngine:(IRWebAPIEngine *)inEngine;
@property (nonatomic, assign, readonly) IRWebAPIEngine *engine;
@property (nonatomic, retain, readonly) IRWebAPICredentials *currentCredentials;
@end
@interface IRWebAPIAuthenticator ()
- (void) createTransformerBlocks;
- (void) associateWithEngine:(IRWebAPIEngine *)inEngine;
- (void) disassociateEngine;
- (void) authenticateCredentials:(IRWebAPICredentials *)inCredentials onSuccess:(IRWebAPIAuthenticatorCallback)successHandler onFailure:(IRWebAPIAuthenticatorCallback)failureHandler;
@property (nonatomic, assign, readwrite) IRWebAPIEngine *engine;
@property (nonatomic, copy, readwrite) IRWebAPIRequestContextTransformer globalRequestPreTransformerBlock;
@property (nonatomic, copy, readwrite) IRWebAPIRequestContextTransformer globalRequestPostTransformerBlock;
@property (nonatomic, copy, readwrite) IRWebAPIResponseContextTransformer globalResponsePreTransformerBlock;
@property (nonatomic, copy, readwrite) IRWebAPIResponseContextTransformer globalResponsePostTransformerBlock;
@property (nonatomic, retain, readwrite) IRWebAPICredentials *currentCredentials;
@end