org.apache.commons.httpclient.auth
public final class AuthChallengeProcessor extends Object
Since: 3.0
Constructor Summary | |
---|---|
AuthChallengeProcessor(HttpParams params)
Creates an authentication challenge processor with the given {@link HttpParams HTTP
parameters}
|
Method Summary | |
---|---|
AuthScheme | processChallenge(AuthState state, Map challenges)
Processes the given collection of challenges and updates the
{@link AuthState state} of the authentication process.
|
AuthScheme | selectAuthScheme(Map challenges)
Determines the preferred {@link AuthScheme authentication scheme} that can be used
to respond to the given collection of challenges.
|
Parameters: params the {@link HttpParams HTTP parameters} used by this processor
Parameters: challenges the collection of authentication challenges
Returns: the {@link AuthScheme authentication scheme} used to process the challenge
Throws: AuthChallengeException if authentication challenges cannot be successfully processed or the preferred authentication scheme cannot be determined
Parameters: challenges the collection of authentication challenges
Returns: the preferred {@link AuthScheme authentication scheme}
Throws: AuthChallengeException if the preferred authentication scheme cannot be determined or is not supported