Class AuthChallengeParser
java.lang.Object
org.apache.hc.client5.http.impl.auth.AuthChallengeParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final charprivate static final charprivate static final org.apache.hc.core5.util.Tokenizer.Delimiterprivate static final charstatic final AuthChallengeParserDefault instance ofAuthChallengeParser.private static final org.apache.hc.core5.util.Tokenizer.Delimiterprivate static final org.apache.hc.core5.util.Tokenizer.Delimiterprivate 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 ofAuthChallengeelements.(package private) AuthChallengeParser.ChallengeIntparseChallenge(CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor, AuthChallengeParser.ChallengeInt currentChallenge) (package private) StringparseToken(CharSequence buf, org.apache.hc.core5.http.message.ParserCursor cursor)
-
Field Details
-
INSTANCE
Default instance ofAuthChallengeParser. -
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
private static final org.apache.hc.core5.util.Tokenizer.Delimiter TERMINATORS -
DELIMITER
private static final org.apache.hc.core5.util.Tokenizer.Delimiter DELIMITER -
SPACE
private static final org.apache.hc.core5.util.Tokenizer.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 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
-
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
-