@Immutable
public abstract class HTTPAuthScope
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.http.auth.AuthScope |
ANY |
static java.lang.String |
ANY_PRINCIPAL |
| Constructor and Description |
|---|
HTTPAuthScope() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.auth.AuthScope |
deserializeScope(java.io.ObjectInputStream oos) |
static boolean |
equivalent(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2)
Equivalence algorithm:
if any field is ANY_XXX, then they are equivalent.
|
static boolean |
identical(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2) |
static void |
serializeScope(org.apache.http.auth.AuthScope scope,
java.io.ObjectOutputStream oos) |
static org.apache.http.auth.AuthScope |
urlToScope(java.lang.String authscheme,
java.lang.String surl,
java.lang.String[] principalp)
Create an AuthScope from a URL; pull out any principal
|
static boolean |
wildcardMatch(java.lang.String p1,
java.lang.String p2) |
public static final java.lang.String ANY_PRINCIPAL
public static final org.apache.http.auth.AuthScope ANY
public static boolean equivalent(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2)
public static boolean identical(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2)
public static org.apache.http.auth.AuthScope urlToScope(java.lang.String authscheme,
java.lang.String surl,
java.lang.String[] principalp)
throws HTTPException
surl - to convertprincipalp - to store principal from urlHTTPExceptionpublic static boolean wildcardMatch(java.lang.String p1,
java.lang.String p2)
public static void serializeScope(org.apache.http.auth.AuthScope scope,
java.io.ObjectOutputStream oos)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.http.auth.AuthScope deserializeScope(java.io.ObjectInputStream oos)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundException