Package org.apache.http.impl.auth
Class HttpAuthenticator
java.lang.Object
org.apache.http.impl.auth.HttpAuthenticator
- Direct Known Subclasses:
HttpAuthenticator
- Since:
- 4.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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)
-
Field Details
-
log
private final org.apache.commons.logging.Log log
-
-
Constructor Details
-
HttpAuthenticator
public HttpAuthenticator(org.apache.commons.logging.Log log) -
HttpAuthenticator
public HttpAuthenticator()
-
-
Method Details
-
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, IOException - Throws:
org.apache.http.HttpException
IOException
-
ensureAuthScheme
-
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
-