public class DefaultProxyAuthenticator extends Object implements ProxyAuthenticator
| Modifier and Type | Field and Description |
|---|---|
protected SchemeRegistry |
registry |
| Constructor and Description |
|---|
DefaultProxyAuthenticator() |
DefaultProxyAuthenticator(ProxyConfiguration configuration) |
DefaultProxyAuthenticator(ProxyConfiguration configuration,
List<AuthenticatorStrategy> strategies) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterFailedAuthentication(Headers responseHeaders) |
void |
afterSuccessfulAuthentication(Headers responseHeaders) |
boolean |
canAuthenticatePreemptively() |
boolean |
canAuthenticatePreemptively(HTTPHost host) |
protected static List<AuthenticatorStrategy> |
defaultStrategies() |
ProxyConfiguration |
getConfiguration() |
void |
invalidateAuthentication() |
HTTPRequest |
prepareAuthentication(HTTPRequest request,
HTTPResponse response) |
HTTPRequest |
preparePreemptiveAuthentication(HTTPRequest request) |
protected Pair<AuthenticatorStrategy,AuthScheme> |
select(List<AuthScheme> authScheme) |
protected List<AuthScheme> |
toAuthSchemes(HTTPResponse response,
String name) |
protected final SchemeRegistry registry
public DefaultProxyAuthenticator()
public DefaultProxyAuthenticator(ProxyConfiguration configuration)
public DefaultProxyAuthenticator(ProxyConfiguration configuration, List<AuthenticatorStrategy> strategies)
public final HTTPRequest prepareAuthentication(HTTPRequest request, HTTPResponse response)
prepareAuthentication in interface ProxyAuthenticatorpublic boolean canAuthenticatePreemptively()
canAuthenticatePreemptively in interface ProxyAuthenticatorpublic HTTPRequest preparePreemptiveAuthentication(HTTPRequest request)
preparePreemptiveAuthentication in interface ProxyAuthenticatorpublic void afterSuccessfulAuthentication(Headers responseHeaders)
afterSuccessfulAuthentication in interface ProxyAuthenticatorpublic void afterFailedAuthentication(Headers responseHeaders)
afterFailedAuthentication in interface ProxyAuthenticatorpublic void invalidateAuthentication()
invalidateAuthentication in interface ProxyAuthenticatorpublic ProxyConfiguration getConfiguration()
getConfiguration in interface ProxyAuthenticatorprotected static List<AuthenticatorStrategy> defaultStrategies()
protected Pair<AuthenticatorStrategy,AuthScheme> select(List<AuthScheme> authScheme)
public boolean canAuthenticatePreemptively(HTTPHost host)
protected List<AuthScheme> toAuthSchemes(HTTPResponse response, String name)
Copyright © 2008–2017. All rights reserved.