Package org.apache.http.impl.auth
Class HttpAuthenticator
- java.lang.Object
-
- org.apache.http.impl.auth.HttpAuthenticator
-
- Direct Known Subclasses:
HttpAuthenticator
public class HttpAuthenticator extends java.lang.Object
- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.commons.logging.Log
log
-
Constructor Summary
Constructors Constructor Description HttpAuthenticator()
HttpAuthenticator(org.apache.commons.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
isAuthenticationRequested
public boolean isAuthenticationRequested(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, AuthenticationStrategy authStrategy, AuthState authState, org.apache.http.protocol.HttpContext context)
-
handleAuthChallenge
public boolean handleAuthChallenge(org.apache.http.HttpHost host, org.apache.http.HttpResponse response, AuthenticationStrategy authStrategy, AuthState authState, org.apache.http.protocol.HttpContext context)
-
generateAuthResponse
public void generateAuthResponse(org.apache.http.HttpRequest request, AuthState authState, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
- Throws:
org.apache.http.HttpException
java.io.IOException
-
ensureAuthScheme
private void ensureAuthScheme(AuthScheme authScheme)
-
doAuth
private org.apache.http.Header doAuth(AuthScheme authScheme, Credentials creds, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
- Throws:
AuthenticationException
-
-