@Contract(threading=SAFE) public class BasicAuthCache extends java.lang.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 java.util.Map<org.apache.http.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(org.apache.http.HttpHost host) |
protected org.apache.http.HttpHost |
getKey(org.apache.http.HttpHost host) |
void |
put(org.apache.http.HttpHost host,
AuthScheme authScheme) |
void |
remove(org.apache.http.HttpHost host) |
java.lang.String |
toString() |
private final org.apache.commons.logging.Log log
private final java.util.Map<org.apache.http.HttpHost,byte[]> map
private final SchemePortResolver schemePortResolver
public BasicAuthCache(SchemePortResolver schemePortResolver)
public BasicAuthCache()
protected org.apache.http.HttpHost getKey(org.apache.http.HttpHost host)
public void put(org.apache.http.HttpHost host, AuthScheme authScheme)
public AuthScheme get(org.apache.http.HttpHost host)
public void remove(org.apache.http.HttpHost host)
public java.lang.String toString()
toString
in class java.lang.Object