| Package | Description | 
|---|---|
| org.apache.hc.client5.http.impl.auth | Standard and common HTTP authentication schemes. | 
| org.apache.hc.client5.http.protocol | HTTP protocol interceptors that enable advanced functionality
 such as HTTP state management and authentication state caching. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HttpAuthenticator. addAuthResponse(HttpHost host,
               ChallengeType challengeType,
               HttpRequest request,
               AuthExchange authExchange,
               HttpContext context)Generates a response to the authentication challenge based on the actual  AuthExchangestate
 and adds it to the givenHttpRequestmessage . | 
| boolean | HttpAuthenticator. isChallenged(HttpHost host,
            ChallengeType challengeType,
            HttpResponse response,
            AuthExchange authExchange,
            HttpContext context)Determines whether the given response represents an authentication challenge. | 
| void | AuthCacheKeeper. loadPreemptively(HttpHost host,
                String pathPrefix,
                AuthExchange authExchange,
                HttpContext context) | 
| boolean | HttpAuthenticator. updateAuthState(HttpHost host,
               ChallengeType challengeType,
               HttpResponse response,
               AuthenticationStrategy authStrategy,
               AuthExchange authExchange,
               HttpContext context)Updates the  AuthExchangestate based on the challenge presented in the response message
 using the givenAuthenticationStrategy. | 
| void | AuthCacheKeeper. updateOnChallenge(HttpHost host,
                 String pathPrefix,
                 AuthExchange authExchange,
                 HttpContext context) | 
| void | AuthCacheKeeper. updateOnNoChallenge(HttpHost host,
                   String pathPrefix,
                   AuthExchange authExchange,
                   HttpContext context) | 
| void | AuthCacheKeeper. updateOnResponse(HttpHost host,
                String pathPrefix,
                AuthExchange authExchange,
                HttpContext context) | 
| Modifier and Type | Method and Description | 
|---|---|
| AuthExchange | HttpClientContext. getAuthExchange(HttpHost host) | 
| Modifier and Type | Method and Description | 
|---|---|
| Map<HttpHost,AuthExchange> | HttpClientContext. getAuthExchanges() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HttpClientContext. setAuthExchange(HttpHost host,
               AuthExchange authExchange) | 
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.