public class HTTPAuthStore extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
HTTPAuthStore.Entry |
Modifier and Type | Field and Description |
---|---|
static String |
ANY_PRINCIPAL |
protected static HTTPAuthStore |
DEFAULT |
static String |
DEFAULT_SCHEME |
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
|
static HTTPAuthStore |
getDefault() |
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 final String DEFAULT_SCHEME
public static final String ANY_PRINCIPAL
public static boolean TESTING
protected static HTTPAuthStore DEFAULT
protected boolean isdefault
protected List<HTTPAuthStore.Entry> rows
public HTTPAuthStore()
public HTTPAuthStore(boolean isdefault)
public static HTTPAuthStore getDefault()
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
- HTTPException
public org.apache.http.client.CredentialsProvider insert(HTTPAuthStore.Entry entry) throws HTTPException
entry
- HTTPException
public HTTPAuthStore.Entry remove(HTTPAuthStore.Entry entry) throws HTTPException
entry
- HTTPException
public 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
IOException
public void print(PrintWriter p) throws IOException
IOException
public void serialize(OutputStream ostream, String password) throws HTTPException
HTTPException
public void deserialize(InputStream istream, String password) throws HTTPException
HTTPException
public static ObjectInputStream openobjectstream(InputStream istream, String password) throws HTTPException
HTTPException
public static HTTPAuthStore getDeserializedStore(ObjectInputStream ois) throws HTTPException
HTTPException
protected static List<HTTPAuthStore.Entry> getDeserializedEntries(ObjectInputStream ois) throws HTTPException
HTTPException
Copyright © 1999–2018 UCAR/Unidata. All rights reserved.