AuthenticationStrategy
@Deprecated public interface AuthenticationHandler
此接口的实现必须是线程安全的。 必须同步访问共享数据,因为可以从多个线程执行此接口的方法。
| Modifier and Type | Method and Description |
|---|---|
Map<String,Header> |
getChallenges(HttpResponse response, HttpContext context)
已过时。
从给定的HTTP响应中提取认证挑战的集合,每个认证挑战表示认证主机支持的认证方案。
|
boolean |
isAuthenticationRequested(HttpResponse response, HttpContext context)
已过时。
确定给定的HTTP响应响应是否表示由于身份验证失败而发回的身份验证挑战
|
AuthScheme |
selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context)
已过时。
从所有可用的中选择一个认证挑战,并创建并生成能够处理该挑战的 AuthScheme实例。
|
boolean isAuthenticationRequested(HttpResponse response, HttpContext context)
response - HTTP响应。
context - HTTP上下文。
true如果需要用户认证,否则为
false 。
Map<String,Header> getChallenges(HttpResponse response, HttpContext context) throws MalformedChallengeException
response - HTTP响应。
context - HTTP上下文。
MalformedChallengeException - 如果其中一个认证挑战无效或畸形。
AuthScheme selectScheme(Map<String,Header> challenges, HttpResponse response, HttpContext context) throws AuthenticationException
AuthScheme实例。
challenges - 挑战的集合。
response - HTTP响应。
context - HTTP上下文。
AuthenticationException - 如果无法选择认证方案。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.