public final class AuthChallengeParser extends Object
| Constructor and Description |
|---|
AuthChallengeParser() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static String extractScheme(String challengeStr) throws MalformedChallengeException
challengeStr - the authentication challenge stringMalformedChallengeException - when the authentication challenge string
is malformedpublic static Map extractParams(String challengeStr) throws MalformedChallengeException
challengeStr - the authentication challenge stringMalformedChallengeException - when the authentication challenge string
is malformedpublic static Map parseChallenges(Header[] headers) throws MalformedChallengeException
headers - the array of authorization challengesMalformedChallengeException - if any of challenge strings
is malformedCopyright © 2020 Internet2. All rights reserved.