Top Description Constructors Methods
org.apache.http.impl.client

public Class DefaultProxyAuthenticationHandler

extends AbstractAuthenticationHandler
Class Inheritance
Annotations
@Deprecated
@Contract
threading:IMMUTABLE
Imports
java.util.List, .Map, org.apache.http.Header, .HttpResponse, .HttpStatus, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.auth.AUTH, .MalformedChallengeException, org.apache.http.auth.params.AuthPNames, org.apache.http.protocol.HttpContext, org.apache.http.util.Args

Deprecated

(4.2) use ProxyAuthenticationStrategy

Default org.apache.http.client.AuthenticationHandler implementation for proxy host authentication.
Since
4.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected List<String>
getAuthPreferences(final HttpResponse
HTTP response.
response
,
final HttpContext
HTTP execution context.
context
)

Overrides org.apache.http.impl.client.AbstractAuthenticationHandler.getAuthPreferences.

Returns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.
public Map<String, Header>
getChallenges(final HttpResponse
HTTP response.
response
,
final HttpContext
HTTP context.
context
)

Implements org.apache.http.client.AuthenticationHandler.getChallenges.

Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.
public boolean
isAuthenticationRequested(final HttpResponse
HTTP response.
response
,
final HttpContext
HTTP context.
context
)

Implements org.apache.http.client.AuthenticationHandler.isAuthenticationRequested.

Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure
Inherited from org.apache.http.impl.client.AbstractAuthenticationHandler:
getAuthPreferencesparseChallengesselectScheme

Constructor Detail

DefaultProxyAuthenticationHandlerback to summary
public DefaultProxyAuthenticationHandler()

Method Detail

getAuthPreferencesback to summary
protected List<String> getAuthPreferences(final HttpResponse response, final HttpContext context)

Overrides org.apache.http.impl.client.AbstractAuthenticationHandler.getAuthPreferences.

Doc from org.apache.http.impl.client.AbstractAuthenticationHandler.getAuthPreferences.

Returns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.

Parameters
response:HttpResponse

HTTP response.

context:HttpContext

HTTP execution context.

Annotations
@Override
getChallengesback to summary
public Map<String, Header> getChallenges(final HttpResponse response, final HttpContext context) throws MalformedChallengeException

Implements org.apache.http.client.AuthenticationHandler.getChallenges.

Doc from org.apache.http.client.AuthenticationHandler.getChallenges.

Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.

Parameters
response:HttpResponse

HTTP response.

context:HttpContext

HTTP context.

Returns:Map<String, Header>

a collection of challenges keyed by names of corresponding authentication schemes.

Annotations
@Override
Exceptions
MalformedChallengeException:
if one of the authentication challenges is not valid or malformed.
isAuthenticationRequestedback to summary
public boolean isAuthenticationRequested(final HttpResponse response, final HttpContext context)

Implements org.apache.http.client.AuthenticationHandler.isAuthenticationRequested.

Doc from org.apache.http.client.AuthenticationHandler.isAuthenticationRequested.

Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure

Parameters
response:HttpResponse

HTTP response.

context:HttpContext

HTTP context.

Returns:boolean

true if user authentication is required, false otherwise.

Annotations
@Override