29 lines
588 B
Objective-C
29 lines
588 B
Objective-C
//
|
|
// XMPPXOAuth2Google.h
|
|
// Off the Record
|
|
//
|
|
// Created by David Chiles on 9/13/13.
|
|
// Copyright (c) 2013 Chris Ballinger. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "XMPPSASLAuthentication.h"
|
|
#import "XMPPStream.h"
|
|
|
|
@interface XMPPXOAuth2Google : NSObject <XMPPSASLAuthentication>
|
|
|
|
-(id)initWithStream:(XMPPStream *)stream accessToken:(NSString *)accessToken;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface XMPPStream (XMPPXOAuth2Google)
|
|
|
|
|
|
- (BOOL)supportsXOAuth2GoogleAuthentication;
|
|
|
|
- (BOOL)authenticateWithGoogleAccessToken:(NSString *)accessToken error:(NSError **)errPtr;
|
|
|
|
@end
|