public class ChallengeRequest extends Object
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.Constructor and Description |
---|
ChallengeRequest(String location,
String challenge)
Constructor from the protected URI location triggering the challenge,
and an entire server-provided 'WWW-Authenticate:' string.
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationParameters()
Return the string after the space separator, not including the authentication scheme nor the space itself,
or
null if no such string exists. |
String |
getAuthenticationScheme()
Return the authentication scheme with which the server is challenging.
|
String |
getLocation()
Return the protected URI the access of which triggered this challenge as a
String . |
String |
toString() |
public ChallengeRequest(String location, String challenge)
location
- the protected URI location triggering the challengechallenge
- an entire server-provided 'WWW-Authenticate:' stringpublic String getLocation()
String
.
For some authentication schemes, the production of a response to the challenge may require
access to the location of the URI triggering the challenge.String
public String getAuthenticationScheme()
public String getAuthenticationParameters()
null
if no such string exists.null
if no such string exists.Copyright © 2015. All Rights Reserved.