Class AuthChallengeParser
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.AuthChallengeParser
-
public class AuthChallengeParser extends java.lang.Object
Authentication challenge parser.- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AuthChallengeParser.ChallengeInt
-
Field Summary
Fields Modifier and Type Field Description private static char
BLANK
private static char
COMMA_CHAR
private static java.util.BitSet
DELIMITER
private static char
EQUAL_CHAR
static AuthChallengeParser
INSTANCE
private static java.util.BitSet
SPACE
private static java.util.BitSet
TERMINATORS
private org.apache.hc.core5.util.Tokenizer
tokenParser
-
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 ofAuthChallenge
elements.(package private) AuthChallengeParser.ChallengeInt
parseChallenge(java.lang.CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor, AuthChallengeParser.ChallengeInt currentChallenge)
(package private) java.lang.String
parseToken(java.lang.CharSequence buf, org.apache.hc.core5.http.message.ParserCursor cursor)
-
-
-
Field Detail
-
INSTANCE
public static final AuthChallengeParser INSTANCE
-
tokenParser
private final org.apache.hc.core5.util.Tokenizer tokenParser
-
BLANK
private static final char BLANK
- See Also:
- Constant Field Values
-
COMMA_CHAR
private static final char COMMA_CHAR
- See Also:
- Constant Field Values
-
EQUAL_CHAR
private static final char EQUAL_CHAR
- See Also:
- Constant Field Values
-
TERMINATORS
private static final java.util.BitSet TERMINATORS
-
DELIMITER
private static final java.util.BitSet DELIMITER
-
SPACE
private static final java.util.BitSet SPACE
-
-
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 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(java.lang.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
java.lang.String parseToken(java.lang.CharSequence buf, org.apache.hc.core5.http.message.ParserCursor cursor)
-
-