com.microsoft.tfs.core.httpclient.auth
Class PreemptiveBasicScheme

java.lang.Object
  extended by com.microsoft.tfs.core.httpclient.auth.AuthorizationHeaderScheme
      extended by com.microsoft.tfs.core.httpclient.auth.RFC2617Scheme
          extended by com.microsoft.tfs.core.httpclient.auth.BasicScheme
              extended by com.microsoft.tfs.core.httpclient.auth.PreemptiveBasicScheme
All Implemented Interfaces:
AuthScheme

public class PreemptiveBasicScheme
extends BasicScheme

A modification on HTTP Basic to send authentication preemptively.


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
PreemptiveBasicScheme()
           
 
Method Summary
 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.BasicScheme
authenticate, authenticate, authenticate, getSchemeName, isComplete, isConnectionBased, processChallenge
 
Methods inherited from class com.microsoft.tfs.core.httpclient.auth.RFC2617Scheme
getID, getParameter, getParameters, getRealm
 
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

PreemptiveBasicScheme

public PreemptiveBasicScheme()
Method Detail

supportsCredentials

public boolean supportsCredentials(Credentials credentials)
Description copied from interface: AuthScheme
Determines whether this auth scheme supports credentials of the given type. For example, NegotiateScheme only supports DefaultNTCredentials.

Specified by:
supportsCredentials in interface AuthScheme
Overrides:
supportsCredentials in class BasicScheme
Returns:
true if these credentials are supported, false otherwise


© 2015 Microsoft. All rights reserved.