Class HttpAuthenticator
- java.lang.Object
-
- org.apache.hc.client5.http.impl.auth.AuthenticationHandler
-
- org.apache.hc.client5.http.impl.auth.HttpAuthenticator
-
@Deprecated @Contract(threading=STATELESS) public final class HttpAuthenticator extends AuthenticationHandler
Deprecated.Do not use.
-
-
Constructor Summary
Constructors Constructor Description HttpAuthenticator()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAuthResponse(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 actualAuthExchangestate and adds it to the givenHttpRequestmessage .booleanisChallenged(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 theAuthExchangestate.booleanupdateAuthState(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.-
Methods inherited from class org.apache.hc.client5.http.impl.auth.AuthenticationHandler
extractChallengeMap, handleResponse, isChallengeExpected
-
-
-
-
Method Detail
-
isChallenged
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)Deprecated.Description copied from class:AuthenticationHandlerDetermines whether the given response represents an authentication challenge, and updates theAuthExchangestate.- Overrides:
isChallengedin classAuthenticationHandler- Parameters:
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.- Returns:
trueif the response message represents an authentication challenge,falseotherwise.
-
updateAuthState
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)Deprecated.
-
addAuthResponse
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)Deprecated.Description copied from class:AuthenticationHandlerGenerates a response to the authentication challenge based on the actualAuthExchangestate and adds it to the givenHttpRequestmessage .- Overrides:
addAuthResponsein classAuthenticationHandler- Parameters:
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.
-
-