public class HTTPCachingProvider
extends java.lang.Object
implements org.apache.http.client.CredentialsProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPCachingProvider.Triple |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.auth.AuthScope |
authscope |
protected static java.util.List<HTTPCachingProvider.Triple> |
cache |
protected java.lang.String |
principal |
static java.lang.String |
PROXY_AUTH_RESP |
protected HTTPAuthStore |
store |
static boolean |
TESTING |
protected static java.util.List<HTTPCachingProvider.Triple> |
testlist |
static java.lang.String |
WWW_AUTH_RESP |
| Constructor and Description |
|---|
HTTPCachingProvider(HTTPAuthStore store,
org.apache.http.auth.AuthScope authscope,
java.lang.String principal) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.http.auth.Credentials |
cacheCredentials(java.lang.String principal,
org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds)
Insert a credentials into the cache; will return
any previous value.
|
protected static org.apache.http.auth.Credentials |
checkCache(java.lang.String principal,
org.apache.http.auth.AuthScope scope)
Retrieve a credentials from the cache.
|
void |
clear() |
static void |
clearCache() |
static java.util.List<HTTPCachingProvider.Triple> |
getCache() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope) |
static java.util.List<HTTPCachingProvider.Triple> |
getTestList() |
static void |
invalidate(org.apache.http.auth.AuthScope scope)
Clear some entries matching the argument
|
void |
setCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds) |
java.lang.String |
toString() |
public static final java.lang.String WWW_AUTH_RESP
public static final java.lang.String PROXY_AUTH_RESP
public static boolean TESTING
protected HTTPAuthStore store
protected org.apache.http.auth.AuthScope authscope
protected java.lang.String principal
protected static java.util.List<HTTPCachingProvider.Triple> cache
protected static java.util.List<HTTPCachingProvider.Triple> testlist
public HTTPCachingProvider(HTTPAuthStore store, org.apache.http.auth.AuthScope authscope, java.lang.String principal)
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
getCredentials in interface org.apache.http.client.CredentialsProviderpublic void setCredentials(org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds)
setCredentials in interface org.apache.http.client.CredentialsProviderpublic void clear()
clear in interface org.apache.http.client.CredentialsProviderpublic java.lang.String toString()
toString in class java.lang.Objectprotected static org.apache.http.auth.Credentials cacheCredentials(java.lang.String principal,
org.apache.http.auth.AuthScope scope,
org.apache.http.auth.Credentials creds)
scope - the key for retrieving a credentials object.creds - the credentials object associated with this keyprotected static org.apache.http.auth.Credentials checkCache(java.lang.String principal,
org.apache.http.auth.AuthScope scope)
principal - a key for retrieving a credentials object.scope - a key for retrieving a credentials object.public static void invalidate(org.apache.http.auth.AuthScope scope)
public static void clearCache()
public static java.util.List<HTTPCachingProvider.Triple> getCache()
public static java.util.List<HTTPCachingProvider.Triple> getTestList()