Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
| Modifier and Type | Method and Description |
|---|---|
| public void | authFailed(HttpHost
authentication host. authhost, AuthScheme authentication scheme used. authScheme, HttpContext HTTP context. context)Callback invoked in case of unsuccessful authentication. |
| public void | authSucceeded(HttpHost
authentication host. authhost, AuthScheme authentication scheme used. authScheme, HttpContext HTTP context. context)Callback invoked in case of successful authentication. |
| public Map | Returns: a collection of challenges keyed by names of corresponding authentication schemes.authentication host. authhost, HttpResponse HTTP response. response, HttpContext HTTP context. context)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 | Returns: true if user authentication is required,
false otherwise.authentication host. authhost, HttpResponse HTTP response. response, HttpContext HTTP context. context)Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure. |
| public Queue | Returns: authentication auth schemes that can be used for authentication. Can be empty.collection of challenges. challenges, HttpHost authentication host. authhost, HttpResponse HTTP response. response, HttpContext HTTP context. context)Selects one authentication challenge out of all available and
creates and generates |
| authFailed | back to summary |
|---|---|
| public void authFailed(HttpHost authhost, AuthScheme authScheme, HttpContext context) Callback invoked in case of unsuccessful authentication.
| |
| authSucceeded | back to summary |
|---|---|
| public void authSucceeded(HttpHost authhost, AuthScheme authScheme, HttpContext context) Callback invoked in case of successful authentication.
| |
| getChallenges | back to summary |
|---|---|
| public Map Extracts from the given HTTP response a collection of authentication challenges, each of which represents an authentication scheme supported by the authentication host.
| |
| isAuthenticationRequested | back to summary |
|---|---|
| public boolean isAuthenticationRequested(HttpHost authhost, HttpResponse response, HttpContext context) Determines if the given HTTP response response represents an authentication challenge that was sent back as a result of authentication failure.
| |
| select | back to summary |
|---|---|
| public Queue Selects one authentication challenge out of all available and
creates and generates
| |