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.Logger
private final SchemePortResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
clearCache
(org.apache.hc.core5.http.HttpHost host, String pathPrefix, HttpClientContext clientContext) private AuthScheme
loadFromCache
(org.apache.hc.core5.http.HttpHost host, String pathPrefix, HttpClientContext clientContext) void
loadPreemptively
(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) private void
updateCache
(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthScheme authScheme, HttpClientContext clientContext) void
updateOnChallenge
(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) void
updateOnNoChallenge
(org.apache.hc.core5.http.HttpHost host, String pathPrefix, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context) void
updateOnResponse
(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)
-