CocoaShare/Classes/Dropbox/DropboxSDK/MPOAuth/MPOAuthAuthenticationMethod.h

33 lines
862 B
C
Raw Normal View History

2011-02-01 09:51:02 -06:00
//
// MPOAuthAuthenticationMethod.h
// MPOAuthConnection
//
// Created by Karl Adam on 09.12.19.
// Copyright 2009 matrixPointer. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * const MPOAuthAccessTokenURLKey;
@class MPOAuthAPI;
@interface MPOAuthAuthenticationMethod : NSObject {
MPOAuthAPI *oauthAPI;
NSURL *oauthGetAccessTokenURL;
NSTimer *refreshTimer;
}
- (void)setOauthAPI:(MPOAuthAPI *)theAPI;
- (MPOAuthAPI *)oauthAPI;
- (void)setOauthGetAccessTokenURL:(NSURL *)theURL;
- (NSURL *)oauthGetAccessTokenURL;
- (id)initWithAPI:(MPOAuthAPI *)inAPI forURL:(NSURL *)inURL;
- (id)initWithAPI:(MPOAuthAPI *)inAPI forURL:(NSURL *)inURL withConfiguration:(NSDictionary *)inConfig;
- (void)authenticate;
- (void)setTokenRefreshInterval:(NSTimeInterval)inTimeInterval;
- (void)refreshAccessToken;
@end