public class DefaultAuthenticator extends Object implements Authenticator
| Modifier and Type | Field and Description |
|---|---|
protected SchemeRegistry |
registry |
| Constructor and Description |
|---|
DefaultAuthenticator() |
DefaultAuthenticator(List<AuthenticatorStrategy> strategies) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterFailedAuthentication(HTTPRequest request,
Headers responseHeaders) |
void |
afterSuccessfulAuthentication(HTTPRequest request,
Headers responseHeaders) |
boolean |
canAuthenticatePreemptively(HTTPHost host) |
boolean |
canAuthenticatePreemptively(HTTPRequest request) |
protected static List<AuthenticatorStrategy> |
defaultStrategies() |
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 DefaultAuthenticator()
public DefaultAuthenticator(List<AuthenticatorStrategy> strategies)
public final HTTPRequest prepareAuthentication(HTTPRequest request, HTTPResponse response)
prepareAuthentication in interface Authenticatorpublic boolean canAuthenticatePreemptively(HTTPRequest request)
canAuthenticatePreemptively in interface Authenticatorpublic HTTPRequest preparePreemptiveAuthentication(HTTPRequest request)
preparePreemptiveAuthentication in interface Authenticatorpublic void afterSuccessfulAuthentication(HTTPRequest request, Headers responseHeaders)
afterSuccessfulAuthentication in interface Authenticatorpublic void afterFailedAuthentication(HTTPRequest request, Headers responseHeaders)
afterFailedAuthentication in interface Authenticatorprotected 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-2013. All Rights Reserved.