HTTPAuthenticationRequest.h.svn-base
上传用户:kc0325
上传日期:2020-06-20
资源大小:204k
文件大小:1k
源码类别:

iPhone

开发平台:

Objective-C

  1. #import <Foundation/Foundation.h>
  2. #if TARGET_OS_IPHONE
  3. // Note: You may need to add the CFNetwork Framework to your project
  4. #import <CFNetwork/CFNetwork.h>
  5. #endif
  6. @interface HTTPAuthenticationRequest : NSObject
  7. {
  8. BOOL isBasic;
  9. BOOL isDigest;
  10. NSString *base64Credentials;
  11. NSString *username;
  12. NSString *realm;
  13. NSString *nonce;
  14. NSString *uri;
  15. NSString *qop;
  16. NSString *nc;
  17. NSString *cnonce;
  18. NSString *response;
  19. }
  20. - (id)initWithRequest:(CFHTTPMessageRef)request;
  21. - (BOOL)isBasic;
  22. - (BOOL)isDigest;
  23. // Basic
  24. - (NSString *)base64Credentials;
  25. // Digest
  26. - (NSString *)username;
  27. - (NSString *)realm;
  28. - (NSString *)nonce;
  29. - (NSString *)uri;
  30. - (NSString *)qop;
  31. - (NSString *)nc;
  32. - (NSString *)cnonce;
  33. - (NSString *)response;
  34. @end