@Contract(threading=SAFE_CONDITIONAL) public class BasicAuthCache extends Object implements AuthCache
AuthCache. This implements
expects AuthScheme to be Serializable
in order to be cacheable.
Instances of this class are thread safe as of version 4.4.
| 构造器和说明 |
|---|
BasicAuthCache() |
BasicAuthCache(SchemePortResolver schemePortResolver)
Default constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
AuthScheme |
get(HttpHost host)
Returns the authentication state with the given authentication scope from the cache
if available.
|
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.
|
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.
|
void |
remove(HttpHost host,
String pathPrefix)
Removes the authentication state with the given authentication scope from the cache
if found.
|
String |
toString() |
public BasicAuthCache(SchemePortResolver schemePortResolver)
public BasicAuthCache()
public void put(HttpHost host, AuthScheme authScheme)
AuthCachepublic AuthScheme get(HttpHost host)
AuthCachepublic void remove(HttpHost host)
AuthCachepublic void put(HttpHost host, String pathPrefix, AuthScheme authScheme)
AuthCachepublic AuthScheme get(HttpHost host, String pathPrefix)
AuthCachepublic void remove(HttpHost host, String pathPrefix)
AuthCacheCopyright © 2023. All rights reserved.