org.apache.commons.httpclient.auth
public final class AuthChallengeParser extends java.lang.Object
Constructor and Description |
---|
AuthChallengeParser() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
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 |
parseChallenges(Header[] headers)
Extracts a map of challenges ordered by authentication scheme name
|
public static java.lang.String extractScheme(java.lang.String challengeStr) throws MalformedChallengeException
challengeStr
- the authentication challenge stringMalformedChallengeException
- when the authentication challenge string
is malformedpublic static java.util.Map extractParams(java.lang.String challengeStr) throws MalformedChallengeException
challengeStr
- the authentication challenge stringMalformedChallengeException
- when the authentication challenge string
is malformedpublic static java.util.Map parseChallenges(Header[] headers) throws MalformedChallengeException
headers
- the array of authorization challengesMalformedChallengeException
- if any of challenge strings
is malformedCopyright (c) 1999-2005 - Apache Software Foundation