@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.
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) |
String |
toString() |
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)
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.