Class AuthCacheKeeper
java.lang.Object
org.apache.hc.client5.http.impl.auth.AuthCacheKeeper
Utility class that implements commons aspects of the client side authentication cache keeping.
- Since:
- 5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final SchemePortResolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidclearCache(org.apache.hc.core5.http.HttpHost host, String pathPrefix, HttpClientContext clientContext) private AuthSchemeloadFromCache(org.apache.hc.core5.http.HttpHost host, String pathPrefix, HttpClientContext clientContext) voidloadPreemptively(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) private voidupdateCache(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthScheme authScheme, HttpClientContext clientContext) voidupdateOnChallenge(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) voidupdateOnNoChallenge(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) voidupdateOnResponse(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
schemePortResolver
-
-
Constructor Details
-
AuthCacheKeeper
-
-
Method Details
-
updateOnChallenge
public void updateOnChallenge(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) -
updateOnNoChallenge
public void updateOnNoChallenge(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) -
updateOnResponse
public void updateOnResponse(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) -
loadPreemptively
public void loadPreemptively(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) -
loadFromCache
private AuthScheme loadFromCache(org.apache.hc.core5.http.HttpHost host, String pathPrefix, HttpClientContext clientContext) -
updateCache
private void updateCache(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthScheme authScheme, HttpClientContext clientContext) -
clearCache
private void clearCache(org.apache.hc.core5.http.HttpHost host, String pathPrefix, HttpClientContext clientContext)
-