|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.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,
java.util.Map challenges)
Processes the given collection of challenges and updates the state of the authentication process. |
AuthScheme |
processChallenge(AuthState state,
java.util.Map challenges,
Credentials credentials)
|
AuthScheme |
selectAuthScheme(java.util.Map challenges)
|
AuthScheme |
selectAuthScheme(java.util.Map challenges,
Credentials credentials)
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(java.util.Map challenges) throws AuthChallengeException
AuthChallengeException
public AuthScheme selectAuthScheme(java.util.Map challenges, Credentials credentials) 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, java.util.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
public AuthScheme processChallenge(AuthState state, java.util.Map challenges, Credentials credentials) throws MalformedChallengeException, AuthenticationException
MalformedChallengeException
AuthenticationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |