Package org.apache.http.impl.client
Class BasicAuthCache
- java.lang.Object
-
- org.apache.http.impl.client.BasicAuthCache
-
- All Implemented Interfaces:
AuthCache
@Contract(threading=SAFE) public class BasicAuthCache extends java.lang.Object implements AuthCache
Default implementation ofAuthCache. This implements expectsAuthSchemeto beSerializablein order to be cacheable.Instances of this class are thread safe as of version 4.4.
- Since:
- 4.1
-
-
Constructor Summary
Constructors Constructor Description BasicAuthCache()BasicAuthCache(SchemePortResolver schemePortResolver)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()AuthSchemeget(HttpHost host)voidput(HttpHost host, AuthScheme authScheme)voidremove(HttpHost host)java.lang.StringtoString()
-
-
-
Constructor Detail
-
BasicAuthCache
public BasicAuthCache(SchemePortResolver schemePortResolver)
Default constructor.- Since:
- 4.3
-
BasicAuthCache
public BasicAuthCache()
-
-
Method Detail
-
put
public void put(HttpHost host, AuthScheme authScheme)
-
get
public AuthScheme get(HttpHost host)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-