ProxyAuthenticationStrategy
@Deprecated @Contract(threading=IMMUTABLE) public class DefaultProxyAuthenticationHandler extends AbstractAuthenticationHandler
AuthenticationHandler代理主机认证实现。
| Constructor and Description |
|---|
DefaultProxyAuthenticationHandler()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getAuthPreferences(HttpResponse response, HttpContext context)
已过时。
根据HTTP响应和当前执行上下文,以优先级顺序返回默认方案名称的默认列表。
|
Map<String,Header> |
getChallenges(HttpResponse response, HttpContext context)
已过时。
从给定的HTTP响应中提取认证挑战的集合,每个认证挑战表示认证主机支持的认证方案。
|
boolean |
isAuthenticationRequested(HttpResponse response, HttpContext context)
已过时。
确定给定的HTTP响应响应是否表示由于身份验证失败而发回的身份验证挑战
|
getAuthPreferences, parseChallenges, selectSchemepublic boolean isAuthenticationRequested(HttpResponse response, HttpContext context)
AuthenticationHandler复制
response - HTTP响应。
context - HTTP上下文。
true如果需要用户认证,
false否则。
public Map<String,Header> getChallenges(HttpResponse response, HttpContext context) throws MalformedChallengeException
AuthenticationHandler复制
response - HTTP响应。
context - HTTP上下文。
MalformedChallengeException - 如果其中一个认证挑战无效或畸形。
protected List<String> getAuthPreferences(HttpResponse response, HttpContext context)
getAuthPreferences在
AbstractAuthenticationHandler
response - HTTP响应。
context - HTTP执行上下文。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.