@Deprecated @Contract(threading=STATELESS) public final class HttpAuthenticator extends AuthenticationHandler
Constructor and Description |
---|
HttpAuthenticator()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthResponse(org.apache.hc.core5.http.HttpHost host,
ChallengeType challengeType,
org.apache.hc.core5.http.HttpRequest request,
AuthExchange authExchange,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Generates a response to the authentication challenge based on the actual
AuthExchange state
and adds it to the given HttpRequest message . |
boolean |
isChallenged(org.apache.hc.core5.http.HttpHost host,
ChallengeType challengeType,
org.apache.hc.core5.http.HttpResponse response,
AuthExchange authExchange,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Determines whether the given response represents an authentication challenge, and updates
the
AuthExchange state. |
boolean |
updateAuthState(org.apache.hc.core5.http.HttpHost host,
ChallengeType challengeType,
org.apache.hc.core5.http.HttpResponse response,
AuthenticationStrategy authStrategy,
AuthExchange authExchange,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
|
extractChallengeMap, handleResponse, isChallengeExpected
public boolean isChallenged(org.apache.hc.core5.http.HttpHost host, ChallengeType challengeType, org.apache.hc.core5.http.HttpResponse response, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context)
AuthenticationHandler
AuthExchange
state.isChallenged
in class AuthenticationHandler
host
- the hostname of the opposite endpoint.challengeType
- the challenge type (target or proxy).response
- the response message head.authExchange
- the current authentication exchange state. Gets updated.context
- the current execution context.true
if the response message represents an authentication challenge,
false
otherwise.public boolean updateAuthState(org.apache.hc.core5.http.HttpHost host, ChallengeType challengeType, org.apache.hc.core5.http.HttpResponse response, AuthenticationStrategy authStrategy, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context)
public void addAuthResponse(org.apache.hc.core5.http.HttpHost host, ChallengeType challengeType, org.apache.hc.core5.http.HttpRequest request, AuthExchange authExchange, org.apache.hc.core5.http.protocol.HttpContext context)
AuthenticationHandler
AuthExchange
state
and adds it to the given HttpRequest
message .addAuthResponse
in class AuthenticationHandler
host
- the hostname of the opposite endpoint.challengeType
- the challenge type (target or proxy).request
- the request message head.authExchange
- the current authentication exchange state.context
- the current execution context.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.