HTTPAuthenticationRequest.h
上传用户:kc0325
上传日期:2020-06-20
资源大小:204k
文件大小:1k
源码类别:
iPhone
开发平台:
Objective-C
- #import <Foundation/Foundation.h>
- #if TARGET_OS_IPHONE
- // Note: You may need to add the CFNetwork Framework to your project
- #import <CFNetwork/CFNetwork.h>
- #endif
- @interface HTTPAuthenticationRequest : NSObject
- {
- BOOL isBasic;
- BOOL isDigest;
- NSString *base64Credentials;
- NSString *username;
- NSString *realm;
- NSString *nonce;
- NSString *uri;
- NSString *qop;
- NSString *nc;
- NSString *cnonce;
- NSString *response;
- }
- - (id)initWithRequest:(CFHTTPMessageRef)request;
- - (BOOL)isBasic;
- - (BOOL)isDigest;
- // Basic
- - (NSString *)base64Credentials;
- // Digest
- - (NSString *)username;
- - (NSString *)realm;
- - (NSString *)nonce;
- - (NSString *)uri;
- - (NSString *)qop;
- - (NSString *)nc;
- - (NSString *)cnonce;
- - (NSString *)response;
- @end