Class AuthChallengeProcessor
- java.lang.Object
-
- org.apache.commons.httpclient.auth.AuthChallengeProcessor
-
@Deprecated public final class AuthChallengeProcessor extends java.lang.Object
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
Constructors Constructor Description AuthChallengeProcessor(HttpParams params)
Deprecated.Creates an authentication challenge processor with the givenHTTP parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthScheme
processChallenge(AuthState state, java.util.Map challenges)
Deprecated.Processes the given collection of challenges and updates thestate
of the authentication process.AuthScheme
selectAuthScheme(java.util.Map challenges)
Deprecated.Determines the preferredauthentication scheme
that can be used to respond to the given collection of challenges.
-
-
-
Constructor Detail
-
AuthChallengeProcessor
public AuthChallengeProcessor(HttpParams params)
Deprecated.Creates an authentication challenge processor with the givenHTTP parameters
- Parameters:
params
- theHTTP parameters
used by this processor
-
-
Method Detail
-
selectAuthScheme
public AuthScheme selectAuthScheme(java.util.Map challenges) throws AuthChallengeException
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, java.util.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
-
-