MPOAuthConnection.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //
  2. // MPOAuthConnection.h
  3. // MPOAuthConnection
  4. //
  5. // Created by Karl Adam on 08.12.05.
  6. // Copyright 2008 matrixPointer. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol MPOAuthCredentialStore;
  10. @protocol MPOAuthParameterFactory;
  11. @class MPOAuthURLRequest;
  12. @class MPOAuthURLResponse;
  13. @class MPOAuthCredentialConcreteStore;
  14. @interface MPOAuthConnection : NSURLConnection {
  15. @private
  16. MPOAuthCredentialConcreteStore *_credentials;
  17. }
  18. @property (nonatomic, readonly) id <MPOAuthCredentialStore, MPOAuthParameterFactory> credentials;
  19. + (MPOAuthConnection *)connectionWithRequest:(MPOAuthURLRequest *)inRequest delegate:(id)inDelegate credentials:(NSObject <MPOAuthCredentialStore, MPOAuthParameterFactory> *)inCredentials;
  20. + (NSData *)sendSynchronousRequest:(MPOAuthURLRequest *)inRequest usingCredentials:(NSObject <MPOAuthCredentialStore, MPOAuthParameterFactory> *)inCredentials returningResponse:(MPOAuthURLResponse **)outResponse error:(NSError **)inError;
  21. - (id)initWithRequest:(MPOAuthURLRequest *)inRequest delegate:(id)inDelegate credentials:(NSObject <MPOAuthCredentialStore, MPOAuthParameterFactory> *)inCredentials;
  22. @end