@Contract(threading=SAFE) 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.
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.logging.Log |
log |
private Map<HttpHost,byte[]> |
map |
private SchemePortResolver |
schemePortResolver |
Constructor and Description |
---|
BasicAuthCache() |
BasicAuthCache(SchemePortResolver schemePortResolver)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
AuthScheme |
get(HttpHost host) |
protected HttpHost |
getKey(HttpHost host) |
void |
put(HttpHost host,
AuthScheme authScheme) |
void |
remove(HttpHost host) |
String |
toString() |
private final org.apache.commons.logging.Log log
private final SchemePortResolver schemePortResolver
public BasicAuthCache(SchemePortResolver schemePortResolver)
public BasicAuthCache()
public void put(HttpHost host, AuthScheme authScheme)
public AuthScheme get(HttpHost host)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses