public class HTTPCredentialsCache extends Object implements org.apache.http.client.CredentialsProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPCredentialsCache.Triple |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.auth.AuthScope |
authscope |
protected static List<HTTPCredentialsCache.Triple> |
cache |
protected String |
principal |
static String |
PROXY_AUTH_RESP |
protected int |
retryCount |
protected ucar.nc2.util.net.HTTPAuthStore |
store |
protected static List<HTTPCredentialsCache.Triple> |
testlist |
static String |
WWW_AUTH_RESP |
| Constructor and Description |
|---|
HTTPCredentialsCache(ucar.nc2.util.net.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<HTTPCredentialsCache.Triple> |
getCache() |
org.apache.http.auth.Credentials |
getCredentials(org.apache.http.auth.AuthScope scope) |
static List<HTTPCredentialsCache.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
protected ucar.nc2.util.net.HTTPAuthStore store
protected int retryCount
protected org.apache.http.auth.AuthScope authscope
protected String principal
protected static List<HTTPCredentialsCache.Triple> cache
protected static List<HTTPCredentialsCache.Triple> testlist
public HTTPCredentialsCache(ucar.nc2.util.net.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.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.CredentialsProviderprotected 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<HTTPCredentialsCache.Triple> getCache()
public static List<HTTPCredentialsCache.Triple> getTestList()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.