Class AuthChallengeProcessor
java.lang.Object
org.apache.commons.httpclient.auth.AuthChallengeProcessor
Deprecated.
Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project.
It is not recommended to use it in any new code.
Instead, use HTTP client API plugins as a dependency in your code.
E.g.
Apache HttpComponents Client API 4.x Plugin or
Async HTTP Client Plugin.
This class provides utility methods for processing HTTP www and proxy authentication
challenges.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionAuthChallengeProcessor
(HttpParams params) Deprecated.Creates an authentication challenge processor with the givenHTTP parameters
-
Method Summary
Modifier and TypeMethodDescriptionprocessChallenge
(AuthState state, Map challenges) Deprecated.Processes the given collection of challenges and updates thestate
of the authentication process.selectAuthScheme
(Map challenges) Deprecated.Determines the preferredauthentication scheme
that can be used to respond to the given collection of challenges.
-
Constructor Details
-
AuthChallengeProcessor
Deprecated.Creates an authentication challenge processor with the givenHTTP parameters
- Parameters:
params
- theHTTP parameters
used by this processor
-
-
Method Details
-
selectAuthScheme
Deprecated.Determines the preferredauthentication scheme
that can be used to respond to the given collection of challenges.- Parameters:
challenges
- the collection of authentication challenges- Returns:
- the preferred
authentication scheme
- Throws:
AuthChallengeException
- if the preferred authentication scheme cannot be determined or is not supported
-
processChallenge
public AuthScheme processChallenge(AuthState state, Map challenges) throws MalformedChallengeException, AuthenticationException Deprecated.Processes the given collection of challenges and updates thestate
of the authentication process.- Parameters:
challenges
- the collection of authentication challenges- Returns:
- the
authentication scheme
used to process the challenge - Throws:
AuthChallengeException
- if authentication challenges cannot be successfully processed or the preferred authentication scheme cannot be determinedMalformedChallengeException
AuthenticationException
-