Class AuthChallengeParser


  • public class AuthChallengeParser
    extends java.lang.Object
    Authentication challenge parser.
    Since:
    5.0
    • Field Detail

      • tokenParser

        private final org.apache.hc.core5.util.Tokenizer tokenParser
      • TERMINATORS

        private static final java.util.BitSet TERMINATORS
      • DELIMITER

        private static final java.util.BitSet DELIMITER
      • SPACE

        private static final java.util.BitSet SPACE
    • Constructor Detail

      • AuthChallengeParser

        public AuthChallengeParser()
    • 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 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
      • parseToken

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