@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.
| Constructor and Description |
|---|
BasicAuthCache() |
BasicAuthCache(SchemePortResolver schemePortResolver)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
AuthScheme |
get(org.apache.hc.core5.http.HttpHost host) |
void |
put(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme) |
void |
remove(org.apache.hc.core5.http.HttpHost host) |
String |
toString() |
public BasicAuthCache(SchemePortResolver schemePortResolver)
public BasicAuthCache()
public void put(org.apache.hc.core5.http.HttpHost host,
AuthScheme authScheme)
public AuthScheme get(org.apache.hc.core5.http.HttpHost host)
public void remove(org.apache.hc.core5.http.HttpHost host)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.