|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.auth.AuthChallengeParser
public final class AuthChallengeParser
This class provides utility methods for parsing HTTP www and proxy authentication challenges.
| Constructor Summary | |
|---|---|
AuthChallengeParser()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthChallengeParser()
| Method Detail |
|---|
public static String extractScheme(String challengeStr)
throws MalformedChallengeException
challengeStr - the authentication challenge string
MalformedChallengeException - when the authentication challenge string
is malformed
public static Map extractParams(String challengeStr)
throws MalformedChallengeException
challengeStr - the authentication challenge string
MalformedChallengeException - when the authentication challenge string
is malformed
public static Map parseChallenges(Header[] headers)
throws MalformedChallengeException
headers - the array of authorization challenges
MalformedChallengeException - if any of challenge strings
is malformed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||