org.apache.commons.httpclient.auth
public final class AuthChallengeParser extends Object
Since: 2.0beta1
Method Summary | |
---|---|
static Map | extractParams(String challengeStr)
Extracts a map of challenge parameters from an authentication challenge.
|
static String | extractScheme(String challengeStr)
Extracts authentication scheme from the given authentication
challenge.
|
static Map | parseChallenges(Header[] headers)
Extracts a map of challenges ordered by authentication scheme name
|
Parameters: challengeStr the authentication challenge string
Returns: a map of authentication challenge parameters
Throws: MalformedChallengeException when the authentication challenge string is malformed
Since: 2.0beta1
Parameters: challengeStr the authentication challenge string
Returns: authentication scheme
Throws: MalformedChallengeException when the authentication challenge string is malformed
Since: 2.0beta1
Parameters: headers the array of authorization challenges
Returns: a map of authorization challenges
Throws: MalformedChallengeException if any of challenge strings is malformed
Since: 3.0