public class HTTPAuthStore extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HTTPAuthStore.Compare |
static class |
HTTPAuthStore.Entry |
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_PRINCIPAL |
static String |
DEFAULT_SCHEME |
protected HTTPAuthStore |
defaults |
static HTTPAuthStore |
DEFAULTS |
protected boolean |
isdefault |
static org.slf4j.Logger |
log |
protected List<HTTPAuthStore.Entry> |
rows |
static boolean |
TESTING |
| Constructor and Description |
|---|
HTTPAuthStore() |
HTTPAuthStore(boolean isdefault) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all auth store entries
|
void |
deserialize(InputStream istream,
String password) |
List<HTTPAuthStore.Entry> |
getAllRows()
Return all entries in the auth store
|
protected static List<HTTPAuthStore.Entry> |
getDeserializedEntries(ObjectInputStream ois) |
static HTTPAuthStore |
getDeserializedStore(ObjectInputStream ois) |
org.apache.http.client.CredentialsProvider |
insert(HTTPAuthStore.Entry entry) |
org.apache.http.client.CredentialsProvider |
insert(String principal,
org.apache.http.auth.AuthScope scope,
org.apache.http.client.CredentialsProvider provider) |
static ObjectInputStream |
openobjectstream(InputStream istream,
String password) |
void |
print(PrintStream p) |
void |
print(PrintWriter p) |
HTTPAuthStore.Entry |
remove(HTTPAuthStore.Entry entry) |
List<HTTPAuthStore.Entry> |
search(String principal,
org.apache.http.auth.AuthScope scope)
Search for all equivalent rows, then sort on the path.
|
void |
serialize(OutputStream ostream,
String password) |
public static org.slf4j.Logger log
public static HTTPAuthStore DEFAULTS
public static final String DEFAULT_SCHEME
public static final String ANY_PRINCIPAL
public static boolean TESTING
protected List<HTTPAuthStore.Entry> rows
protected boolean isdefault
protected HTTPAuthStore defaults
public HTTPAuthStore()
public HTTPAuthStore(boolean isdefault)
public org.apache.http.client.CredentialsProvider insert(String principal, org.apache.http.auth.AuthScope scope, org.apache.http.client.CredentialsProvider provider) throws HTTPException
scope - provider - HTTPExceptionpublic org.apache.http.client.CredentialsProvider insert(HTTPAuthStore.Entry entry) throws HTTPException
entry - HTTPExceptionpublic HTTPAuthStore.Entry remove(HTTPAuthStore.Entry entry) throws HTTPException
entry - HTTPExceptionpublic void clear()
public List<HTTPAuthStore.Entry> getAllRows()
public List<HTTPAuthStore.Entry> search(String principal, org.apache.http.auth.AuthScope scope)
scope - public void print(PrintStream p) throws IOException
IOExceptionpublic void print(PrintWriter p) throws IOException
IOExceptionpublic void serialize(OutputStream ostream, String password) throws HTTPException
HTTPExceptionpublic void deserialize(InputStream istream, String password) throws HTTPException
HTTPExceptionpublic static ObjectInputStream openobjectstream(InputStream istream, String password) throws HTTPException
HTTPExceptionpublic static HTTPAuthStore getDeserializedStore(ObjectInputStream ois) throws HTTPException
HTTPExceptionprotected static List<HTTPAuthStore.Entry> getDeserializedEntries(ObjectInputStream ois) throws HTTPException
HTTPExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.