| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| pack-priv HashMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized AuthCacheValue | get(String pkey, String skey)
Implements sun. 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 static AuthCacheImpl | getAuthCacheFor(Authenticator auth)
Atomically check if a cache exists for given Authenticator and return it or create one and return it |
| public static AuthCacheImpl | |
| public synchronized void | put(String pkey, AuthCacheValue value)
Implements sun. Put an entry in the cache. |
| public synchronized void | remove(String pkey, AuthCacheValue entry)
Implements sun. remove the entry from the cache whose pkey is specified and whose path is equal to entry.path. |
| public void |
| caches | back to summary |
|---|---|
| private static final Map<Authenticator, AuthCacheImpl> caches | |
| hashtable | back to summary |
|---|---|
| pack-priv HashMap<String, LinkedList<AuthCacheValue>> hashtable | |
| AuthCacheImpl | back to summary |
|---|---|
| public AuthCacheImpl() | |
| get | back to summary |
|---|---|
| public synchronized AuthCacheValue get(String pkey, String skey) Implements sun. Doc from sun. 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. | |
| getAuthCacheFor | back to summary |
|---|---|
| public static AuthCacheImpl getAuthCacheFor(Authenticator auth) Atomically check if a cache exists for given Authenticator and return it or create one and return it | |
| getDefault | back to summary |
|---|---|
| public static AuthCacheImpl getDefault() The default cache is stored under null key which is never garbage collected. | |
| put | back to summary |
|---|---|
| public synchronized void put(String pkey, AuthCacheValue value) Implements sun. Doc from sun. 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 the | |
| remove | back to summary |
|---|---|
| public synchronized void remove(String pkey, AuthCacheValue entry) Implements sun. Doc from sun. 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. | |
| setMap | back to summary |
|---|---|
| public void setMap(HashMap<String, LinkedList<AuthCacheValue>> map) | |