Class AuthChallengeParser
java.lang.Object
org.apache.hc.client5.http.impl.auth.AuthChallengeParser
Authentication challenge parser.
- Since:
- 5.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char
private static final char
private static final BitSet
private static final char
static final AuthChallengeParser
private static final BitSet
private static final BitSet
private final org.apache.hc.core5.util.Tokenizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse
(ChallengeType challengeType, CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor) Parses the given sequence of characters into a list ofAuthChallenge
elements.(package private) AuthChallengeParser.ChallengeInt
parseChallenge
(CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor, AuthChallengeParser.ChallengeInt currentChallenge) (package private) String
parseToken
(CharSequence buf, org.apache.hc.core5.http.message.ParserCursor cursor)
-
Field Details
-
INSTANCE
-
tokenParser
private final org.apache.hc.core5.util.Tokenizer tokenParser -
BLANK
private static final char BLANK- See Also:
-
COMMA_CHAR
private static final char COMMA_CHAR- See Also:
-
EQUAL_CHAR
private static final char EQUAL_CHAR- See Also:
-
TERMINATORS
-
DELIMITER
-
SPACE
-
-
Constructor Details
-
AuthChallengeParser
public AuthChallengeParser()
-
-
Method Details
-
parse
public List<AuthChallenge> parse(ChallengeType challengeType, 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 ofAuthChallenge
elements.- 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
-
parseChallenge
AuthChallengeParser.ChallengeInt parseChallenge(CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor, AuthChallengeParser.ChallengeInt currentChallenge) throws org.apache.hc.core5.http.ParseException - Throws:
org.apache.hc.core5.http.ParseException
-
parseToken
-