Class DefaultProxyAuthenticationHandler

    • Constructor Detail

      • DefaultProxyAuthenticationHandler

        public DefaultProxyAuthenticationHandler()
        Deprecated.
    • Method Detail

      • isAuthenticationRequested

        public boolean isAuthenticationRequested​(HttpResponse response,
                                                 HttpContext context)
        Deprecated.
        Description copied from interface: AuthenticationHandler
        Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure
        Parameters:
        response - HTTP response.
        context - HTTP context.
        Returns:
        true if user authentication is required, false otherwise.
      • getChallenges

        public java.util.Map<java.lang.String,​Header> getChallenges​(HttpResponse response,
                                                                          HttpContext context)
                                                                   throws MalformedChallengeException
        Deprecated.
        Description copied from interface: AuthenticationHandler
        Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.
        Parameters:
        response - HTTP response.
        context - HTTP context.
        Returns:
        a collection of challenges keyed by names of corresponding authentication schemes.
        Throws:
        MalformedChallengeException - if one of the authentication challenges is not valid or malformed.