public class HttpAuthenticator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
HttpAuthenticator() |
HttpAuthenticator(org.apache.commons.logging.Log log) |
Modifier and Type | Method and Description |
---|---|
private org.apache.http.Header |
doAuth(AuthScheme authScheme,
Credentials creds,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
private void |
ensureAuthScheme(AuthScheme authScheme) |
void |
generateAuthResponse(org.apache.http.HttpRequest request,
AuthState authState,
org.apache.http.protocol.HttpContext context) |
boolean |
handleAuthChallenge(org.apache.http.HttpHost host,
org.apache.http.HttpResponse response,
AuthenticationStrategy authStrategy,
AuthState authState,
org.apache.http.protocol.HttpContext context) |
boolean |
isAuthenticationRequested(org.apache.http.HttpHost host,
org.apache.http.HttpResponse response,
AuthenticationStrategy authStrategy,
AuthState authState,
org.apache.http.protocol.HttpContext context) |
public HttpAuthenticator(org.apache.commons.logging.Log log)
public HttpAuthenticator()
public boolean isAuthenticationRequested(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, AuthenticationStrategy authStrategy, AuthState authState, org.apache.http.protocol.HttpContext context)
public boolean handleAuthChallenge(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, AuthenticationStrategy authStrategy, AuthState authState, org.apache.http.protocol.HttpContext context)
public void generateAuthResponse(org.apache.http.HttpRequest request, AuthState authState, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
org.apache.http.HttpException
java.io.IOException
private void ensureAuthScheme(AuthScheme authScheme)
private org.apache.http.Header doAuth(AuthScheme authScheme, Credentials creds, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
AuthenticationException