|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.httpclient.auth.AuthChallengeProcessor
public final class AuthChallengeProcessor
This class provides utility methods for processing HTTP www and proxy authentication challenges.
Constructor Summary | |
---|---|
AuthChallengeProcessor(HttpParams params)
Creates an authentication challenge processor with the given HTTP
parameters |
Method Summary | |
---|---|
AuthScheme |
processChallenge(AuthState state,
Map challenges)
Processes the given collection of challenges and updates the state of the authentication process. |
AuthScheme |
selectAuthScheme(Map challenges)
Determines the preferred authentication scheme that can be used
to respond to the given collection of challenges. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthChallengeProcessor(HttpParams params)
HTTP
parameters
params
- the HTTP parameters
used by this processorMethod Detail |
---|
public AuthScheme selectAuthScheme(Map challenges) throws AuthChallengeException
authentication scheme
that can be used
to respond to the given collection of challenges.
challenges
- the collection of authentication challenges
authentication scheme
AuthChallengeException
- if the preferred authentication scheme
cannot be determined or is not supportedpublic AuthScheme processChallenge(AuthState state, Map challenges) throws MalformedChallengeException, AuthenticationException
state
of the authentication process.
challenges
- the collection of authentication challenges
authentication scheme
used to
process the challenge
AuthChallengeException
- if authentication challenges cannot be
successfully processed or the preferred authentication scheme cannot
be determined
MalformedChallengeException
AuthenticationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |