public class HTTPCachingProvider extends 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 List<HTTPCachingProvider.Triple> |
cache |
protected String |
principal |
static String |
PROXY_AUTH_RESP |
protected HTTPAuthStore |
store |
static boolean |
TESTING |
protected static List<HTTPCachingProvider.Triple> |
testlist |
static String |
WWW_AUTH_RESP |
Constructor and Description |
---|
HTTPCachingProvider(HTTPAuthStore store,
org.apache.http.auth.AuthScope authscope,
String principal) |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.http.auth.Credentials |
cacheCredentials(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(String principal,
org.apache.http.auth.AuthScope scope)
Retrieve a credentials from the cache.
|
void |
clear() |
static void |
clearCache() |
static List<HTTPCachingProvider.Triple> |
getCache() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope) |
static 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) |
String |
toString() |
public static final String WWW_AUTH_RESP
public static final String PROXY_AUTH_RESP
public static boolean TESTING
protected HTTPAuthStore store
protected org.apache.http.auth.AuthScope authscope
protected String principal
protected static List<HTTPCachingProvider.Triple> cache
protected static List<HTTPCachingProvider.Triple> testlist
public HTTPCachingProvider(HTTPAuthStore store, org.apache.http.auth.AuthScope authscope, String principal)
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope scope)
getCredentials
in interface org.apache.http.client.CredentialsProvider
public void setCredentials(org.apache.http.auth.AuthScope scope, org.apache.http.auth.Credentials creds)
setCredentials
in interface org.apache.http.client.CredentialsProvider
public void clear()
clear
in interface org.apache.http.client.CredentialsProvider
protected static org.apache.http.auth.Credentials cacheCredentials(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(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 List<HTTPCachingProvider.Triple> getCache()
public static List<HTTPCachingProvider.Triple> getTestList()
Copyright © 1999–2019 UCAR/Unidata. All rights reserved.