Class ProxyAuthenticationStrategy

    • Constructor Detail

      • ProxyAuthenticationStrategy

        public ProxyAuthenticationStrategy()
    • Method Detail

      • isAuthenticationRequested

        public boolean isAuthenticationRequested​(HttpHost authhost,
                                                 HttpResponse response,
                                                 HttpContext context)
        Description copied from interface: AuthenticationStrategy
        Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure.
        Specified by:
        isAuthenticationRequested in interface AuthenticationStrategy
        Parameters:
        authhost - authentication host.
        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​(HttpHost authhost,
                                                                          HttpResponse response,
                                                                          HttpContext context)
                                                                   throws MalformedChallengeException
        Description copied from interface: AuthenticationStrategy
        Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.
        Specified by:
        getChallenges in interface AuthenticationStrategy
        Parameters:
        authhost - authentication host.
        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.
      • isCachable

        protected boolean isCachable​(AuthScheme authScheme)