public class HTTPAuthStore
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPAuthStore.Entry |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANY_PRINCIPAL |
protected static HTTPAuthStore |
DEFAULT |
static java.lang.String |
DEFAULT_SCHEME |
protected boolean |
isdefault |
static org.slf4j.Logger |
log |
protected java.util.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(java.io.InputStream istream,
java.lang.String password) |
java.util.List<HTTPAuthStore.Entry> |
getAllRows()
Return all entries in the auth store
|
static HTTPAuthStore |
getDefault() |
protected static java.util.List<HTTPAuthStore.Entry> |
getDeserializedEntries(java.io.ObjectInputStream ois) |
static HTTPAuthStore |
getDeserializedStore(java.io.ObjectInputStream ois) |
org.apache.http.client.CredentialsProvider |
insert(HTTPAuthStore.Entry entry) |
org.apache.http.client.CredentialsProvider |
insert(java.lang.String principal,
org.apache.http.auth.AuthScope scope,
org.apache.http.client.CredentialsProvider provider) |
static java.io.ObjectInputStream |
openobjectstream(java.io.InputStream istream,
java.lang.String password) |
void |
print(java.io.PrintStream p) |
void |
print(java.io.PrintWriter p) |
HTTPAuthStore.Entry |
remove(HTTPAuthStore.Entry entry) |
java.util.List<HTTPAuthStore.Entry> |
search(java.lang.String principal,
org.apache.http.auth.AuthScope scope)
Search for all equivalent rows, then sort on the path.
|
void |
serialize(java.io.OutputStream ostream,
java.lang.String password) |
public static org.slf4j.Logger log
public static final java.lang.String DEFAULT_SCHEME
public static final java.lang.String ANY_PRINCIPAL
public static boolean TESTING
protected static HTTPAuthStore DEFAULT
protected boolean isdefault
protected java.util.List<HTTPAuthStore.Entry> rows
public HTTPAuthStore()
public HTTPAuthStore(boolean isdefault)
public static HTTPAuthStore getDefault()
public org.apache.http.client.CredentialsProvider insert(java.lang.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 java.util.List<HTTPAuthStore.Entry> getAllRows()
public java.util.List<HTTPAuthStore.Entry> search(java.lang.String principal, org.apache.http.auth.AuthScope scope)
scope - public void print(java.io.PrintStream p)
throws java.io.IOException
java.io.IOExceptionpublic void print(java.io.PrintWriter p)
throws java.io.IOException
java.io.IOExceptionpublic void serialize(java.io.OutputStream ostream,
java.lang.String password)
throws HTTPException
HTTPExceptionpublic void deserialize(java.io.InputStream istream,
java.lang.String password)
throws HTTPException
HTTPExceptionpublic static java.io.ObjectInputStream openobjectstream(java.io.InputStream istream,
java.lang.String password)
throws HTTPException
HTTPExceptionpublic static HTTPAuthStore getDeserializedStore(java.io.ObjectInputStream ois) throws HTTPException
HTTPExceptionprotected static java.util.List<HTTPAuthStore.Entry> getDeserializedEntries(java.io.ObjectInputStream ois) throws HTTPException
HTTPException