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.
-
– location
Return 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*
. -
– authenticationScheme
Return the authentication scheme with which the server is challenging.
-
– authenticationParameters
Return the string after the space separator, not including the authentication scheme nor the space itself, or
nil
if 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 *)authenticationParameters
Return 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.h
authenticationScheme
Return the authentication scheme with which the server is challenging.
- (NSString *)authenticationScheme
Return Value
the authentication scheme with which the server is challenging.
Declared In
KGChallengeRequest.h
initWithLocation:challenge:
Constructor from the protected URI location triggering the challenge, and an entire server-provided ‘WWW-Authenticate:’ string.
- (id)initWithLocation:(NSString *)location challenge:(NSString *)challenge
Parameters
- location
the protected URI location triggering the challenge
- challenge
an entire server-provided ‘WWW-Authenticate:’ string
Declared In
KGChallengeRequest.h
location
Return the protected URI the access of which triggered this challenge as a NSString*
.
- (NSString *)location
Return Value
the protected URI the access of which triggered this challenge as a NSString*
Declared In
KGChallengeRequest.h