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 expectsAuthScheme
to beSerializable
in 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 void
clear()
AuthScheme
get(HttpHost host)
void
put(HttpHost host, AuthScheme authScheme)
void
remove(HttpHost host)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-