Class AuthChallengeParser


  • public class AuthChallengeParser
    extends java.lang.Object
    Authentication challenge parser.
    Since:
    5.0
    • 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