|
||||||||||
| 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.RFC2617Scheme
com.microsoft.tfs.core.httpclient.auth.BasicScheme
public class BasicScheme
Basic authentication scheme as defined in RFC 2617.
| 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 | |
|---|---|
BasicScheme()
Default constructor for the basic authetication scheme. |
|
BasicScheme(java.lang.String challenge)
Deprecated. Use parameterless constructor and AuthScheme.processChallenge(String) method |
|
| Method Summary | |
|---|---|
java.lang.String |
authenticate(AuthScope authscope,
Credentials credentials,
HttpMethod method)
Produces basic authorization string for the given set of Credentials. |
static java.lang.String |
authenticate(UsernamePasswordCredentials credentials)
Deprecated. Use authenticate(UsernamePasswordCredentials, String)
Returns a basic Authorization header value for the
given UsernamePasswordCredentials. |
static java.lang.String |
authenticate(UsernamePasswordCredentials credentials,
java.lang.String charset)
Returns a basic Authorization header value for the given UsernamePasswordCredentials and charset. |
java.lang.String |
getSchemeName()
Returns textual designation of the basic authentication scheme. |
boolean |
isComplete()
Tests if the Basic authentication process has been completed. |
boolean |
isConnectionBased()
Returns false. |
void |
processChallenge(java.lang.String challenge)
Processes the Basic challenge. |
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.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 |
|---|
public BasicScheme()
@Deprecated
public BasicScheme(java.lang.String challenge)
throws MalformedChallengeException
AuthScheme.processChallenge(String) method
challenge - authentication challenge
MalformedChallengeException - is thrown if the authentication challenge is malformed| Method Detail |
|---|
public boolean supportsCredentials(Credentials credentials)
AuthScheme
public java.lang.String getSchemeName()
basic
public void processChallenge(java.lang.String challenge)
throws MalformedChallengeException
processChallenge in interface AuthSchemeprocessChallenge in class RFC2617Schemechallenge - the challenge string
MalformedChallengeException - is thrown if the authentication challenge is malformedpublic boolean isComplete()
public boolean isConnectionBased()
public java.lang.String authenticate(AuthScope authscope,
Credentials credentials,
HttpMethod method)
throws AuthenticationException
Credentials.
authenticate in class AuthorizationHeaderSchemecredentials - The set of credentials to be used for athenticationmethod - The method being authenticated
InvalidCredentialsException - if authentication credentials are not valid or not applicable for
this authentication scheme
AuthenticationException - if authorization string cannot be generated due to an
authentication failure@Deprecated public static java.lang.String authenticate(UsernamePasswordCredentials credentials)
authenticate(UsernamePasswordCredentials, String)
Returns a basic Authorization header value for the
given UsernamePasswordCredentials.
credentials - The credentials to encode.
public static java.lang.String authenticate(UsernamePasswordCredentials credentials,
java.lang.String charset)
UsernamePasswordCredentials and charset.
credentials - The credentials to encode.charset - The charset to use for encoding the credentials
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||