Class AuthChallengeParser
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.AuthChallengeParser
-
public class AuthChallengeParser extends java.lang.ObjectAuthentication challenge parser.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static AuthChallengeParserINSTANCEDefault instance ofAuthChallengeParser.
-
Constructor Summary
Constructors Constructor Description AuthChallengeParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AuthChallenge>parse(ChallengeType challengeType, java.lang.CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor)Parses the given sequence of characters into a list ofAuthChallengeelements.
-
-
-
Field Detail
-
INSTANCE
public static final AuthChallengeParser INSTANCE
Default instance ofAuthChallengeParser.
-
-
Method Detail
-
parse
public java.util.List<AuthChallenge> parse(ChallengeType challengeType, java.lang.CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor) throws org.apache.hc.core5.http.ParseException
Parses the given sequence of characters into a list ofAuthChallengeelements.- Parameters:
challengeType- the type of challenge (target or proxy).buffer- the sequence of characters to be parsed.cursor- the parser cursor.- Returns:
- a list of auth challenge elements.
- Throws:
org.apache.hc.core5.http.ParseException
-
-