SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
String
|
authenticationParameters
(Read only) The string after the space separator, not including the authentication scheme nor the space itself, or null if no such string exists. |
String
|
authenticationScheme
(Read only) The authentication scheme with which the server is challenging. |
String
|
location
(Read only) The protected URI the access of which triggered this challenge. |
Constructor Summary | |
ChallengeRequest(location, challenge)
Creates an instance of ChallengeRequest using the protected URI location accessing which triggered the challenge. |
Field Detail |
String authenticationParameters
String authenticationScheme
String location
Constructor Detail |
ChallengeRequest(location, challenge)
location
- the protected URI location triggering the challenge
challenge
- an entire server-provided 'WWW-Authenticate:' string