Top Description Fields Constructors Methods
org.apache.http.impl.client

public Class BasicAuthCache

extends Object
implements AuthCache
Class Inheritance
All Implemented Interfaces
org.apache.http.client.AuthCache
Annotations
@Contract
threading:SAFE
Imports
java.io.ByteArrayInputStream, .ByteArrayOutputStream, .IOException, .ObjectInputStream, .ObjectOutputStream, .Serializable, java.util.Map, java.util.concurrent.ConcurrentHashMap, org.apache.commons.logging.Log, .LogFactory, org.apache.http.HttpHost, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.auth.AuthScheme, org.apache.http.client.AuthCache, org.apache.http.conn.SchemePortResolver, .UnsupportedSchemeException, org.apache.http.impl.conn.DefaultSchemePortResolver, org.apache.http.util.Args

Default implementation of org.apache.http.client.AuthCache. This implements expects org.apache.http.auth.AuthScheme to be java.io.Serializable in order to be cacheable.

Instances of this class are thread safe as of version 4.4.

Since
4.1

Field Summary

Modifier and TypeField and Description
private final Log
private final Map<HttpHost, byte[]>
private final SchemePortResolver

Constructor Summary

AccessConstructor and Description
public
BasicAuthCache(final SchemePortResolver schemePortResolver)

Default constructor.

public

Method Summary

Modifier and TypeMethod and Description
public void
public AuthScheme
protected HttpHost
getKey(final HttpHost host)

public void
put(final HttpHost host, final AuthScheme authScheme)

Implements org.apache.http.client.AuthCache.put.

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

logback to summary
private final Log log
mapback to summary
private final Map<HttpHost, byte[]> map
schemePortResolverback to summary
private final SchemePortResolver schemePortResolver

Constructor Detail

BasicAuthCacheback to summary
public BasicAuthCache(final SchemePortResolver schemePortResolver)

Default constructor.

Since
4.3
BasicAuthCacheback to summary
public BasicAuthCache()

Method Detail

clearback to summary
public void clear()

Implements org.apache.http.client.AuthCache.clear.

Annotations
@Override
getback to summary
public AuthScheme get(final HttpHost host)

Implements org.apache.http.client.AuthCache.get.

Annotations
@Override
getKeyback to summary
protected HttpHost getKey(final HttpHost host)
putback to summary
public void put(final HttpHost host, final AuthScheme authScheme)

Implements org.apache.http.client.AuthCache.put.

Annotations
@Override
removeback to summary
public void remove(final HttpHost host)

Implements org.apache.http.client.AuthCache.remove.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override