| Modifier and Type | Field and Description |
|---|---|
static AuthScope |
ANY
默认范围匹配任何主机,端口,领域和认证方案。
|
static String |
ANY_HOST
null值代表任何主机。
|
static int |
ANY_PORT
-1值代表任何端口。
|
static String |
ANY_REALM
null值代表任何领域。
|
static String |
ANY_SCHEME
null值代表任何认证方案。
|
| Constructor and Description |
|---|
AuthScope(AuthScope authscope)
创建给定凭证范围的副本。
|
AuthScope(HttpHost origin)
定义特定原产地的验证范围。
|
AuthScope(HttpHost origin, String realm, String schemeName)
定义特定原产地的验证范围。
|
AuthScope(String host, int port)
使用给定的
host和
port定义认证范围。
|
AuthScope(String host, int port, String realm)
定义与给定的身份验证范围
host ,
port和
realm 。
|
AuthScope(String host, int port, String realm, String schemeName)
定义与给定的身份验证范围
host ,
port ,
realm和
schemeName 。
|
public static final String ANY_HOST
null值代表任何主机。
在将来版本的HttpClient中,使用此参数将被停用。
public static final int ANY_PORT
-1值代表任何端口。
public static final String ANY_REALM
null值代表任何领域。
public static final String ANY_SCHEME
null值代表任何认证方案。
public static final AuthScope ANY
public AuthScope(String host, int port, String realm, String schemeName)
host ,
port ,
realm和
schemeName 。
host - 认证主机。
如果适用于任何主机,可能是ANY_HOST 。
port - 验证端口。
如果适用于主机的任何端口,可以是ANY_PORT 。
realm - 认证领域。
如果适用于主机上的任何领域,可以是ANY_REALM 。
schemeName - 认证方案。
如果适用于主机支持的任何方案,可以是ANY_SCHEME 。
public AuthScope(HttpHost origin, String realm, String schemeName)
origin - 原产地
realm - 认证领域。
如果适用于主机上的任何领域,可以是ANY_REALM 。
schemeName - 认证方案。
如果适用于主机支持的任何方案,可以是ANY_SCHEME 。
public AuthScope(HttpHost origin)
origin - 原产地
public AuthScope(String host, int port)
host和
port定义验证范围。
public AuthScope(AuthScope authscope)
public HttpHost getOrigin()
public String getHost()
public int getPort()
public String getRealm()
public String getScheme()
public int match(AuthScope that)
public boolean equals(Object o)
equals在
Object
Object.equals(Object)
public String toString()
toString在
Object
Object.toString()
public int hashCode()
hashCode在
Object
Object.hashCode()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.