KGChallengeRequest Class Reference
| Inherits from | NSObject |
| Declared in | KGChallengeRequest.h |
Overview
An immutable object representing the challenge presented by the server when the client accessed the URI represented by a location.
According to RFC 2617,challenge = auth-scheme 1*SP 1#auth-paramso we model the authentication scheme and parameters in this class. This class is also responsible for detecting and adapting the
Application Basic
and Application Negotiate authentication schemes into their Basic and Negotiate
counterpart authentication schemes.
Tasks
-
– initWithLocation:challenge:Constructor from the protected URI location triggering the challenge, and an entire server-provided ‘WWW-Authenticate:’ string.
-
– locationReturn the protected URI the access of which triggered this challenge as a
For some authentication schemes, the production of a response to the challenge may require access to the location of the URI triggering the challenge.NSString*. -
– authenticationSchemeReturn the authentication scheme with which the server is challenging.
-
– authenticationParametersReturn the string after the space separator, not including the authentication scheme nor the space itself, or
nilif no such string exists.
Instance Methods
authenticationParameters
Return the string after the space separator, not including the authentication scheme nor the space itself,
or nil if no such string exists.
- (NSString *)authenticationParametersReturn Value
the string after the space separator, not including the authentication scheme nor the space itself,
or nil if no such string exists.
Declared In
KGChallengeRequest.hauthenticationScheme
Return the authentication scheme with which the server is challenging.
- (NSString *)authenticationSchemeReturn Value
the authentication scheme with which the server is challenging.
Declared In
KGChallengeRequest.hinitWithLocation:challenge:
Constructor from the protected URI location triggering the challenge, and an entire server-provided ‘WWW-Authenticate:’ string.
- (id)initWithLocation:(NSString *)location challenge:(NSString *)challengeParameters
- location
the protected URI location triggering the challenge
- challenge
an entire server-provided ‘WWW-Authenticate:’ string
Declared In
KGChallengeRequest.hlocation
Return the protected URI the access of which triggered this challenge as a NSString*.
- (NSString *)locationReturn Value
the protected URI the access of which triggered this challenge as a NSString*
Declared In
KGChallengeRequest.h