@Immutable
public abstract class HTTPAuthUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.http.auth.AuthScope |
ANY |
static java.lang.String |
ANY_HOST |
static int |
ANY_PORT |
static java.lang.String |
ANY_REALM |
static java.lang.String |
ANY_SCHEME |
| Constructor and Description |
|---|
HTTPAuthUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.auth.AuthScope |
deserializeScope(java.io.ObjectInputStream oos) |
static boolean |
equals(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2) |
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 org.apache.http.auth.AuthScope |
fixScopeRealm(org.apache.http.auth.AuthScope scope) |
static java.lang.String |
makerealm(org.apache.http.auth.AuthScope scope) |
static java.lang.String |
makerealm(java.lang.String host,
int port) |
static java.lang.String |
makerealm(java.net.URL url) |
static java.net.URL |
scopeToURL(org.apache.http.auth.AuthScope scope) |
static void |
serializeScope(org.apache.http.auth.AuthScope scope,
java.io.ObjectOutputStream oos) |
static org.apache.http.auth.AuthScope |
urlToScope(java.lang.String surl) |
static org.apache.http.auth.AuthScope |
urlToScope(java.lang.String surl,
java.lang.String authscheme)
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_HOST
public static final int ANY_PORT
public static final java.lang.String ANY_REALM
public static final java.lang.String ANY_SCHEME
public static final org.apache.http.auth.AuthScope ANY
public static org.apache.http.auth.AuthScope urlToScope(java.lang.String surl,
java.lang.String authscheme)
throws HTTPException
surl - to convertauthscheme - HTTPExceptionpublic static org.apache.http.auth.AuthScope urlToScope(java.lang.String surl)
throws HTTPException
HTTPExceptionpublic static java.net.URL scopeToURL(org.apache.http.auth.AuthScope scope)
throws HTTPException
HTTPExceptionpublic static boolean equivalent(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2)
public static boolean equals(org.apache.http.auth.AuthScope a1,
org.apache.http.auth.AuthScope a2)
public static org.apache.http.auth.AuthScope fixScopeRealm(org.apache.http.auth.AuthScope scope)
public static java.lang.String makerealm(java.net.URL url)
public static java.lang.String makerealm(org.apache.http.auth.AuthScope scope)
public static java.lang.String makerealm(java.lang.String host,
int port)
public 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