|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.httpclient.auth.AuthorizationHeaderScheme
com.microsoft.tfs.core.httpclient.auth.WRAPAuthScheme
public class WRAPAuthScheme
Field Summary |
---|
Fields inherited from class com.microsoft.tfs.core.httpclient.auth.AuthorizationHeaderScheme |
---|
HOST_CHALLENGE_HEADER, HOST_RESPONSE_HEADER, PROXY_CHALLENGE_HEADER, PROXY_RESPONSE_HEADER |
Constructor Summary | |
---|---|
WRAPAuthScheme()
|
Method Summary | |
---|---|
protected java.lang.String |
authenticate(AuthScope authScope,
Credentials credentials,
HttpMethod method)
Provides the Authorization or Proxy-Authorization headers for authentication 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 com.microsoft.tfs.core.httpclient.auth.AuthorizationHeaderScheme |
---|
authenticateHost |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WRAPAuthScheme()
Method Detail |
---|
public boolean supportsCredentials(Credentials credentials)
AuthScheme
public void processChallenge(java.lang.String challenge) throws MalformedChallengeException
AuthScheme
challenge
- the challenge string
MalformedChallengeException
public java.lang.String getSchemeName()
AuthScheme
public java.lang.String getParameter(java.lang.String name)
AuthScheme
name
- The name of the parameter to be returned
public boolean isConnectionBased()
AuthScheme
public boolean isComplete()
AuthScheme
protected java.lang.String authenticate(AuthScope authScope, Credentials credentials, HttpMethod method) throws AuthenticationException
AuthorizationHeaderScheme
Credentials
.
authenticate
in class AuthorizationHeaderScheme
credentials
- The set of credentials to be used for authenticationmethod
- The method being authenticated
AuthenticationException
- if authorization string cannot be generated due to an
authentication failurepublic void authenticateProxy(AuthScope authScope, Credentials credentials, HttpState state, HttpMethod method) throws AuthenticationException
AuthScheme
HttpMethod
for authentication to the proxy
with the given Credentials
.
authenticateProxy
in interface AuthScheme
authenticateProxy
in class AuthorizationHeaderScheme
credentials
- 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 |