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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAuthChallengeParser.ChallengeInt
-
Field Summary
Fields Modifier and Type Field Description private static charBLANKprivate static charCOMMA_CHARprivate static java.util.BitSetDELIMITERprivate static charEQUAL_CHARstatic AuthChallengeParserINSTANCEprivate static java.util.BitSetSPACEprivate static java.util.BitSetTERMINATORSprivate org.apache.hc.core5.util.TokenizertokenParser
-
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.(package private) AuthChallengeParser.ChallengeIntparseChallenge(java.lang.CharSequence buffer, org.apache.hc.core5.http.message.ParserCursor cursor, AuthChallengeParser.ChallengeInt currentChallenge)(package private) java.lang.StringparseToken(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 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(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)
-
-