|
||||||||||
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.NTLMScheme
public class NTLMScheme
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 | |
---|---|
NTLMScheme()
|
Method Summary | |
---|---|
java.lang.String |
authenticate(AuthScope authscope,
Credentials credentials,
HttpMethod method)
Provides the Authorization or Proxy-Authorization headers for authentication with the given Credentials . |
static java.lang.String |
getDefaultCredentials()
|
java.lang.String |
getParameter(java.lang.String name)
This authentication scheme does not have parameters, thus we always return null. |
java.lang.String |
getRealm()
There is no realm associated with NTLM authentication, thus we return null. |
java.lang.String |
getSchemeName()
Returns textual designation of the given authentication scheme. |
boolean |
isComplete()
NTLM2 is complete once we've delivered our authentication response (the Type3 message) or we've failed, whichever comes first. |
boolean |
isConnectionBased()
NTLM2 provides authorization on a per-connection basis instead of the usual per-request basis. |
static boolean |
isSupported()
|
void |
processChallenge(java.lang.String challenge)
Processes the given challenge token. |
static boolean |
supportsCredentials(java.lang.Class<?> credentialClass)
|
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, authenticateProxy |
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 |
---|
authenticateHost, authenticateProxy |
Constructor Detail |
---|
public NTLMScheme()
Method Detail |
---|
public java.lang.String getSchemeName()
AuthScheme
getSchemeName
in interface AuthScheme
public static boolean isSupported()
public boolean supportsCredentials(Credentials credentials)
AuthScheme
supportsCredentials
in interface AuthScheme
public static boolean supportsCredentials(java.lang.Class<?> credentialClass)
public static java.lang.String getDefaultCredentials()
public java.lang.String getRealm()
com.microsoft.tfs.core.httpclient.auth.AuthScheme#getRealm()
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface AuthScheme
name
- The name of the parameter to be returned
AuthScheme.getParameter(java.lang.String)
public boolean isComplete()
isComplete
in interface AuthScheme
AuthScheme.isComplete()
public boolean isConnectionBased()
isConnectionBased
in interface AuthScheme
AuthScheme.isConnectionBased()
public void processChallenge(java.lang.String challenge) throws MalformedChallengeException
AuthScheme
processChallenge
in interface AuthScheme
challenge
- the challenge string
MalformedChallengeException
public 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 failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |