Yini  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
MPOAuthAuthenticationMethod.h
Go to the documentation of this file.
1 //
2 // MPOAuthAuthenticationMethod.h
3 // MPOAuthConnection
4 //
5 // Created by Karl Adam on 09.12.19.
6 // Copyright 2009 matrixPointer. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 extern NSString * const MPOAuthAccessTokenURLKey;
12 
13 @class MPOAuthAPI;
14 
15 @interface MPOAuthAuthenticationMethod : NSObject {
18  NSTimer *refreshTimer_;
19 }
20 
21 @property (nonatomic, readwrite, assign) MPOAuthAPI *oauthAPI;
22 @property (nonatomic, readwrite, retain) NSURL *oauthGetAccessTokenURL;
23 
24 - (id)initWithAPI:(MPOAuthAPI *)inAPI forURL:(NSURL *)inURL;
25 - (id)initWithAPI:(MPOAuthAPI *)inAPI forURL:(NSURL *)inURL withConfiguration:(NSDictionary *)inConfig;
26 - (void)authenticate;
27 
28 - (void)setTokenRefreshInterval:(NSTimeInterval)inTimeInterval;
29 - (void)refreshAccessToken;
30 @end