| 软件包 | 描述 |
|---|---|
| org.apache.http.auth |
客户端HTTP认证API。
|
| org.apache.http.client |
客户端HTTP通信API。
|
| org.apache.http.impl.auth |
标准和常规HTTP认证方案的默认实现。
|
| org.apache.http.impl.client |
默认HTTP客户端实现。
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ContextAwareAuthScheme
该接口表示扩展认证方案,需要访问 HttpContext才能生成授权字符串。
|
| Modifier and Type | Method and Description |
|---|---|
AuthScheme |
AuthSchemeProvider.create(HttpContext context)
创建一个 AuthScheme的实例。
|
AuthScheme |
AuthState.getAuthScheme()
退货实际 AuthScheme 。
|
AuthScheme |
AuthOption.getAuthScheme() |
AuthScheme |
AuthSchemeRegistry.getAuthScheme(String name, HttpParams params)
已过时。
获取给定名称的 authentication scheme 。
|
AuthScheme |
AuthSchemeFactory.newInstance(HttpParams params)
已过时。
使用给定的HTTP参数创建一个 AuthScheme的实例。
|
| Modifier and Type | Method and Description |
|---|---|
void |
AuthState.setAuthScheme(AuthScheme authScheme)
已过时。
|
void |
AuthState.update(AuthScheme authScheme, Credentials credentials)
使用 AuthScheme和Credentials更新身份验证状态。
|
| Constructor and Description |
|---|
AuthOption(AuthScheme authScheme, Credentials creds) |
| Modifier and Type | Method and Description |
|---|---|
AuthScheme |
AuthCache.get(HttpHost host) |
AuthScheme |
AuthenticationHandler.selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context)
已过时。
从所有可用的中选择一个认证挑战,并创建并生成能够处理该挑战的 AuthScheme实例。
|
| Modifier and Type | Method and Description |
|---|---|
void |
AuthenticationStrategy.authFailed(HttpHost authhost, AuthScheme authScheme, HttpContext context)
在不成功的身份验证的情况下调用回调。
|
void |
AuthenticationStrategy.authSucceeded(HttpHost authhost, AuthScheme authScheme, HttpContext context)
在成功验证的情况下调用回调。
|
void |
AuthCache.put(HttpHost host, AuthScheme authScheme) |
| Modifier and Type | Class and Description |
|---|---|
class |
AuthSchemeBase
抽象认证方案类,用作HttpClient支持的所有认证方案的基础。
|
class |
BasicScheme
RFC 2617定义的基本认证方案。
|
class |
DigestScheme
Digest认证方案,如RFC 2617所定义。
|
class |
GGSSchemeBase |
class |
KerberosScheme
KERBEROS认证方案。
|
class |
NegotiateScheme
已过时。
(4.2)使用
SPNegoScheme或KerberosScheme 。
|
class |
NTLMScheme
NTLM是由Microsoft开发的专有认证方案,针对Windows平台进行了优化。
|
class |
RFC2617Scheme
抽象认证方案类为所有RFC 2617兼容认证方案奠定了基础,并提供了RFC 2617中定义的所有认证方案的通用功能。
|
class |
SPNegoScheme
SPNEGO(简单和受保护的GSSAPI协商机制)认证方案。
|
| Modifier and Type | Method and Description |
|---|---|
AuthScheme |
SPNegoSchemeFactory.create(HttpContext context) |
AuthScheme |
DigestSchemeFactory.create(HttpContext context) |
AuthScheme |
NTLMSchemeFactory.create(HttpContext context) |
AuthScheme |
BasicSchemeFactory.create(HttpContext context) |
AuthScheme |
KerberosSchemeFactory.create(HttpContext context) |
AuthScheme |
SPNegoSchemeFactory.newInstance(HttpParams params) |
AuthScheme |
DigestSchemeFactory.newInstance(HttpParams params) |
AuthScheme |
NegotiateSchemeFactory.newInstance(HttpParams params)
已过时。
|
AuthScheme |
NTLMSchemeFactory.newInstance(HttpParams params) |
AuthScheme |
BasicSchemeFactory.newInstance(HttpParams params) |
AuthScheme |
KerberosSchemeFactory.newInstance(HttpParams params) |
| Modifier and Type | Method and Description |
|---|---|
AuthScheme |
BasicAuthCache.get(HttpHost host) |
AuthScheme |
AbstractAuthenticationHandler.selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context)
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicAuthCache.put(HttpHost host, AuthScheme authScheme) |
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.