AuthenticationStrategy
@Deprecated @Contract(threading=IMMUTABLE) public abstract class AbstractAuthenticationHandler extends Object implements AuthenticationHandler
AuthenticationHandler实现的基类。
| Constructor and Description |
|---|
AbstractAuthenticationHandler()
已过时。
|
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getAuthPreferences()
已过时。
以优先级顺序返回默认方案名称的默认列表。
|
protected List<String> |
getAuthPreferences(HttpResponse response, HttpContext context)
已过时。
根据HTTP响应和当前执行上下文,以优先级顺序返回默认方案名称的默认列表。
|
protected Map<String,Header> |
parseChallenges(Header[] headers)
已过时。
|
AuthScheme |
selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context)
已过时。
从所有可用的内容中选择一个认证挑战,并创建并生成能够处理该挑战的 AuthScheme实例。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChallenges, isAuthenticationRequestedprotected Map<String,Header> parseChallenges(Header[] headers) throws MalformedChallengeException
protected List<String> getAuthPreferences()
protected List<String> getAuthPreferences(HttpResponse response, HttpContext context)
response - HTTP响应。
context - HTTP执行上下文。
public AuthScheme selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context) throws AuthenticationException
AuthenticationHandler复制
AuthScheme实例。
selectScheme在接口
AuthenticationHandler
challenges - 挑战的集合。
response - HTTP响应。
context - HTTP上下文。
AuthenticationException - 如果无法选择认证方案。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.