HTTPAuthenticationRequest.h 762 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. @class HTTPMessage;
  7. @interface HTTPAuthenticationRequest : NSObject
  8. {
  9. BOOL isBasic;
  10. BOOL isDigest;
  11. NSString *base64Credentials;
  12. NSString *username;
  13. NSString *realm;
  14. NSString *nonce;
  15. NSString *uri;
  16. NSString *qop;
  17. NSString *nc;
  18. NSString *cnonce;
  19. NSString *response;
  20. }
  21. - (id)initWithRequest:(HTTPMessage *)request;
  22. - (BOOL)isBasic;
  23. - (BOOL)isDigest;
  24. // Basic
  25. - (NSString *)base64Credentials;
  26. // Digest
  27. - (NSString *)username;
  28. - (NSString *)realm;
  29. - (NSString *)nonce;
  30. - (NSString *)uri;
  31. - (NSString *)qop;
  32. - (NSString *)nc;
  33. - (NSString *)cnonce;
  34. - (NSString *)response;
  35. @end