|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoft.tfs.core.httpclient.auth.CookieAuthScheme
public class CookieAuthScheme
| Constructor Summary | |
|---|---|
CookieAuthScheme()
|
|
| Method Summary | |
|---|---|
void |
authenticateHost(AuthScope authscope,
Credentials credentials,
HttpState state,
HttpMethod method)
Configures the given HttpMethod for authentication to the host
with the given Credentials. |
void |
authenticateProxy(AuthScope authScope,
Credentials credentials,
HttpState state,
HttpMethod method)
Configures the given HttpMethod for authentication to the proxy
with the given Credentials. |
java.lang.String |
getParameter(java.lang.String name)
Returns authentication parameter with the given name, if available. |
java.lang.String |
getSchemeName()
Returns textual designation of the given authentication scheme. |
boolean |
isComplete()
Authentication process may involve a series of challenge-response exchanges. |
boolean |
isConnectionBased()
Tests if the authentication scheme is provides authorization on a per connection basis instead of usual per request basis |
void |
processChallenge(java.lang.String challenge)
Processes the given challenge token. |
boolean |
supportsCredentials(Credentials credentials)
Determines whether this auth scheme supports credentials of the given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieAuthScheme()
| Method Detail |
|---|
public boolean supportsCredentials(Credentials credentials)
AuthScheme
supportsCredentials in interface AuthScheme
public void processChallenge(java.lang.String challenge)
throws MalformedChallengeException
AuthScheme
processChallenge in interface AuthSchemechallenge - the challenge string
MalformedChallengeExceptionpublic java.lang.String getSchemeName()
AuthScheme
getSchemeName in interface AuthSchemepublic java.lang.String getParameter(java.lang.String name)
AuthScheme
getParameter in interface AuthSchemename - The name of the parameter to be returned
public boolean isConnectionBased()
AuthScheme
isConnectionBased in interface AuthSchemepublic boolean isComplete()
AuthScheme
isComplete in interface AuthScheme
public void authenticateHost(AuthScope authscope,
Credentials credentials,
HttpState state,
HttpMethod method)
throws AuthenticationException
AuthSchemeHttpMethod for authentication to the host
with the given Credentials.
authenticateHost in interface AuthSchemeauthscope - The authentication scopecredentials - The set of credentials to be used for athenticationmethod - The method being authenticated
AuthenticationException - if authorization string cannot be generated due to an
authentication failure
public void authenticateProxy(AuthScope authScope,
Credentials credentials,
HttpState state,
HttpMethod method)
throws AuthenticationException
AuthSchemeHttpMethod for authentication to the proxy
with the given Credentials.
authenticateProxy in interface AuthSchemecredentials - The set of credentials to be used for athenticationmethod - The method being authenticated
AuthenticationException - if authorization string cannot be generated due to an
authentication failure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||