@Contract(threading=IMMUTABLE)
public class TargetAuthenticationStrategy
extends java.lang.Object
AuthenticationStrategy implementation
for proxy host authentication.| Modifier and Type | Field and Description |
|---|---|
static TargetAuthenticationStrategy |
INSTANCE |
| Constructor and Description |
|---|
TargetAuthenticationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
authFailed(HttpHost authhost,
org.apache.http.auth.AuthScheme authScheme,
org.apache.http.protocol.HttpContext context) |
void |
authSucceeded(HttpHost authhost,
org.apache.http.auth.AuthScheme authScheme,
org.apache.http.protocol.HttpContext context) |
java.util.Map<java.lang.String,Header> |
getChallenges(HttpHost authhost,
HttpResponse response,
org.apache.http.protocol.HttpContext context)
Generates a map of challenge auth-scheme => Header entries.
|
boolean |
isAuthenticationRequested(HttpHost authhost,
HttpResponse response,
org.apache.http.protocol.HttpContext context) |
protected boolean |
isCachable(org.apache.http.auth.AuthScheme authScheme) |
java.util.Queue<org.apache.http.auth.AuthOption> |
select(java.util.Map<java.lang.String,Header> challenges,
HttpHost authhost,
HttpResponse response,
org.apache.http.protocol.HttpContext context) |
public static final TargetAuthenticationStrategy INSTANCE
public boolean isAuthenticationRequested(HttpHost authhost, HttpResponse response, org.apache.http.protocol.HttpContext context)
isAuthenticationRequested in interface org.apache.http.client.AuthenticationStrategypublic java.util.Map<java.lang.String,Header> getChallenges(HttpHost authhost, HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.MalformedChallengeException
getChallenges in interface org.apache.http.client.AuthenticationStrategyorg.apache.http.auth.MalformedChallengeExceptionpublic java.util.Queue<org.apache.http.auth.AuthOption> select(java.util.Map<java.lang.String,Header> challenges, HttpHost authhost, HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.auth.MalformedChallengeException
select in interface org.apache.http.client.AuthenticationStrategyorg.apache.http.auth.MalformedChallengeExceptionpublic void authSucceeded(HttpHost authhost, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context)
authSucceeded in interface org.apache.http.client.AuthenticationStrategyprotected boolean isCachable(org.apache.http.auth.AuthScheme authScheme)
public void authFailed(HttpHost authhost, org.apache.http.auth.AuthScheme authScheme, org.apache.http.protocol.HttpContext context)
authFailed in interface org.apache.http.client.AuthenticationStrategy