public class

AuthCacheImpl

extends Object
implements AuthCache
java.lang.Object
   ↳ sun.net.www.protocol.http.AuthCacheImpl

Summary

Public Constructors
AuthCacheImpl()
Public Methods
synchronized AuthCacheValue get(String pkey, String skey)
Get an entry from the cache based on pkey as described above, but also using a pathname (skey) and the cache must return an entry if skey is a sub-path of the AuthCacheValue.path field.
synchronized void put(String pkey, AuthCacheValue value)
Put an entry in the cache.
synchronized void remove(String pkey, AuthCacheValue entry)
remove the entry from the cache whose pkey is specified and whose path is equal to entry.path.
void setMap(HashMap map)
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.net.www.protocol.http.AuthCache

Public Constructors

public AuthCacheImpl ()

Public Methods

public synchronized AuthCacheValue get (String pkey, String skey)

Get an entry from the cache based on pkey as described above, but also using a pathname (skey) and the cache must return an entry if skey is a sub-path of the AuthCacheValue.path field.

public synchronized void put (String pkey, AuthCacheValue value)

Put an entry in the cache. pkey is a string specified as follows: A:[B:]C:D:E[:F] Between 4 and 6 fields separated by ":" where the fields have the following meaning: A is "s" or "p" for server or proxy authentication respectively B is optional and is "D", "B", or "N" for digest, basic or ntlm auth. C is either "http" or "https" D is the hostname E is the port number F is optional and if present is the realm Generally, two entries are created for each AuthCacheValue, one including the realm and one without the realm. Also, for some schemes (digest) multiple entries may be created with the same pkey, but with a different path value in the AuthCacheValue.

public synchronized void remove (String pkey, AuthCacheValue entry)

remove the entry from the cache whose pkey is specified and whose path is equal to entry.path. If entry is null then all entries with the same pkey should be removed.

public void setMap (HashMap map)