Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.httpclient.auth.AuthChallengeProcessor
public final class AuthChallengeProcessor
extends Object
Constructor Summary | |
|
Method Summary | |
AuthScheme |
|
AuthScheme |
|
public AuthChallengeProcessor(HttpParams params)
Creates an authentication challenge processor with the givenHTTP parameters
- Parameters:
params
- theHTTP parameters
used by this processor
public AuthScheme processChallenge(AuthState state, Map challenges) throws MalformedChallengeException, AuthenticationException
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
public AuthScheme selectAuthScheme(Map challenges) throws AuthChallengeException
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