|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.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 java.util.Map<java.lang.String,java.lang.String> |
extractParams(java.lang.String challengeStr)
Extracts a map of challenge parameters from an authentication challenge. |
static java.lang.String |
extractScheme(java.lang.String challengeStr)
Extracts authentication scheme from the given authentication challenge. |
static java.util.Map<java.lang.String,java.lang.String> |
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 java.lang.String extractScheme(java.lang.String challengeStr) throws MalformedChallengeException
challengeStr
- the authentication challenge string
MalformedChallengeException
- when the authentication challenge string is malformedpublic static java.util.Map<java.lang.String,java.lang.String> extractParams(java.lang.String challengeStr) throws MalformedChallengeException
challengeStr
- the authentication challenge string
MalformedChallengeException
- when the authentication challenge string is malformedpublic static java.util.Map<java.lang.String,java.lang.String> 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 |