Class AuthChallengeParser

java.lang.Object
org.apache.hc.client5.http.impl.auth.AuthChallengeParser

public class AuthChallengeParser extends Object
Authentication challenge parser.
Since:
5.0
  • Field Details

    • INSTANCE

      public static final AuthChallengeParser 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

      private static final BitSet TERMINATORS
    • DELIMITER

      private static final BitSet DELIMITER
    • SPACE

      private static final BitSet 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 of AuthChallenge 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

      String parseToken(CharSequence buf, org.apache.hc.core5.http.message.ParserCursor cursor)