public abstract class

AbstractAuthenticationHandler

extends Object
implements AuthenticationHandler
java.lang.Object
   ↳ org.apache.http.impl.client.AbstractAuthenticationHandler
Known Direct Subclasses

Class Overview

Base class for AuthenticationHandler implementations.

Summary

Public Constructors
AbstractAuthenticationHandler()
Public Methods
AuthScheme selectScheme(Map<StringHeader> challenges, HttpResponse response, HttpContext context)
Selects one authentication challenge out of all available and creates and generates AuthScheme instance capable of processing that challenge.
Protected Methods
List<String> getAuthPreferences()
Returns default list of auth scheme names in their order of preference.
List<String> getAuthPreferences(HttpResponse response, HttpContext context)
Returns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.
Map<StringHeader> parseChallenges(Header[] headers)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.http.client.AuthenticationHandler

Public Constructors

public AbstractAuthenticationHandler ()

Also: HttpClient

Public Methods

public AuthScheme selectScheme (Map<StringHeader> challenges, HttpResponse response, HttpContext context)

Also: HttpClient

Selects one authentication challenge out of all available and creates and generates AuthScheme instance capable of processing that challenge.

Parameters
challenges collection of challenges.
response HTTP response.
context HTTP context.
Returns
  • authentication scheme to use for authentication.

Protected Methods

protected List<String> getAuthPreferences ()

Also: HttpClient

Returns default list of auth scheme names in their order of preference.

Returns
  • list of auth scheme names

protected List<String> getAuthPreferences (HttpResponse response, HttpContext context)

Also: HttpClient

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

Parameters
response HTTP response.
context HTTP execution context.

protected Map<StringHeader> parseChallenges (Header[] headers)

Also: HttpClient