public interface AuthCache
AuthScheme state information
 that can be re-used for preemptive authentication by subsequent requests.| Modifier and Type | Method and Description | 
|---|---|
| void | clear() | 
| AuthScheme | get(HttpHost host)Returns the authentication state with the given authentication scope from the cache
 if available. | 
| default AuthScheme | get(HttpHost host,
   String pathPrefix)Returns the authentication state with the given authentication scope from the cache
 if available. | 
| void | put(HttpHost host,
   AuthScheme authScheme)Stores the authentication state with the given authentication scope in the cache. | 
| default void | put(HttpHost host,
   String pathPrefix,
   AuthScheme authScheme)Stores the authentication state with the given authentication scope in the cache. | 
| void | remove(HttpHost host)Removes the authentication state with the given authentication scope from the cache
 if found. | 
| default void | remove(HttpHost host,
      String pathPrefix)Removes the authentication state with the given authentication scope from the cache
 if found. | 
void put(HttpHost host, AuthScheme authScheme)
host - the authentication authority.authScheme - the cacheable authentication state.AuthScheme get(HttpHost host)
host - the authentication authority.null if not available in the cache.void remove(HttpHost host)
host - the authentication authority.void clear()
default void put(HttpHost host, String pathPrefix, AuthScheme authScheme)
host - the authentication authority.pathPrefix - the path prefix (the path component up to the last segment separator).
                   Can be null.authScheme - the cacheable authentication state.default AuthScheme get(HttpHost host, String pathPrefix)
host - the authentication authority.pathPrefix - the path prefix (the path component up to the last segment separator).
                   Can be null.null if not available in the cache.default void remove(HttpHost host, String pathPrefix)
host - the authentication authority.pathPrefix - the path prefix (the path component up to the last segment separator).
                   Can be null.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.