Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (43 sloc) 1.257 kB
//
// OAProblem.h
// OAuthConsumer
//
// Created by Alberto García Hierro on 03/09/08.
// Copyright 2008 Alberto García Hierro. All rights reserved.
// bynotes.com
#import <Foundation/Foundation.h>
enum {
kOAProblemSignatureMethodRejected = 0,
kOAProblemParameterAbsent,
kOAProblemVersionRejected,
kOAProblemConsumerKeyUnknown,
kOAProblemTokenRejected,
kOAProblemSignatureInvalid,
kOAProblemNonceUsed,
kOAProblemTimestampRefused,
kOAProblemTokenExpired,
kOAProblemTokenNotRenewable
};
@interface OAProblem : NSObject {
NSString *problem;
}
@property (readonly) NSString *problem;
- (id)initWithProblem:(NSString *)aProblem;
- (id)initWithResponseBody:(NSString *)response;
- (BOOL)isEqualToProblem:(OAProblem *)aProblem;
- (BOOL)isEqualToString:(NSString *)aProblem;
- (BOOL)isEqualTo:(id)aProblem;
- (int)code;
+ (OAProblem *)problemWithResponseBody:(NSString *)response;
+ (NSArray *)validProblems;
+ (OAProblem *)SignatureMethodRejected;
+ (OAProblem *)ParameterAbsent;
+ (OAProblem *)VersionRejected;
+ (OAProblem *)ConsumerKeyUnknown;
+ (OAProblem *)TokenRejected;
+ (OAProblem *)SignatureInvalid;
+ (OAProblem *)NonceUsed;
+ (OAProblem *)TimestampRefused;
+ (OAProblem *)TokenExpired;
+ (OAProblem *)TokenNotRenewable;
@end
Jump to Line
Something went wrong with that request. Please try again.