private void clearCache(final HttpHost host,
                            final String pathPrefix,
                            final HttpClientContext clientContext) {
        final AuthCache authCache = clientContext.getAuthCache();
        if (authCache != null) {
            if (LOG.isDebugEnabled()) {
                final String exchangeId = clientContext.getExchangeId();
                LOG.debug("{} Clearing cached auth scheme for {}{}", exchangeId, host,
                        pathPrefix != null ? pathPrefix : "");
            }
            authCache.remove(host, pathPrefix);
        }
    }
Utility class that implements commons aspects of the client side authentication cache keeping.

@since 5.2
httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/AuthCacheKeeper.java