|
||||||||||
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
public abstract class AuthorizationHeaderScheme
Field Summary | |
---|---|
static java.lang.String |
HOST_CHALLENGE_HEADER
The WWW authenticate challenge header. |
static java.lang.String |
HOST_RESPONSE_HEADER
The WWW authenticate response header. |
static java.lang.String |
PROXY_CHALLENGE_HEADER
The proxy authenticate challenge header. |
static java.lang.String |
PROXY_RESPONSE_HEADER
The proxy authenticate response header. |
Constructor Summary | |
---|---|
AuthorizationHeaderScheme()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
authenticate(AuthScope authScope,
Credentials credentials,
HttpMethod method)
Provides the Authorization or Proxy-Authorization headers for authentication with the given Credentials . |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.microsoft.tfs.core.httpclient.auth.AuthScheme |
---|
getParameter, getSchemeName, isComplete, isConnectionBased, processChallenge, supportsCredentials |
Field Detail |
---|
public static final java.lang.String HOST_CHALLENGE_HEADER
"WWW-Authenticate"
public static final java.lang.String HOST_RESPONSE_HEADER
"Authorization"
public static final java.lang.String PROXY_CHALLENGE_HEADER
"Proxy-Authenticate"
public static final java.lang.String PROXY_RESPONSE_HEADER
"Proxy-Authorization"
Constructor Detail |
---|
public AuthorizationHeaderScheme()
Method Detail |
---|
public void authenticateHost(AuthScope authScope, Credentials credentials, HttpState state, HttpMethod method) throws AuthenticationException
AuthScheme
HttpMethod
for authentication to the host
with the given Credentials
.
authenticateHost
in interface AuthScheme
authScope
- 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 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
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 failureprotected abstract java.lang.String authenticate(AuthScope authScope, Credentials credentials, HttpMethod method) throws AuthenticationException
Credentials
.
authscope
- The authentication scopecredentials
- The set of credentials to be used for authenticationmethod
- 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 |