|
||||||||||
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
public abstract class RFC2617Scheme
Abstract authentication scheme class that lays foundation for all RFC 2617 compliant authetication schemes and provides capabilities common to all authentication schemes 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 | |
---|---|
RFC2617Scheme()
Default constructor for RFC2617 compliant authentication schemes. |
|
RFC2617Scheme(java.lang.String challenge)
Deprecated. Use parameterless constructor and AuthScheme.processChallenge(String) method |
Method Summary | |
---|---|
java.lang.String |
getID()
Deprecated. no longer used |
java.lang.String |
getParameter(java.lang.String name)
Returns authentication parameter with the given name, if available. |
protected java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Returns authentication parameters map. |
java.lang.String |
getRealm()
Returns authentication realm. |
void |
processChallenge(java.lang.String challenge)
Processes the given challenge token. |
Methods inherited from class com.microsoft.tfs.core.httpclient.auth.AuthorizationHeaderScheme |
---|
authenticate, 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, getSchemeName, isComplete, isConnectionBased, supportsCredentials |
Constructor Detail |
---|
public RFC2617Scheme()
@Deprecated public RFC2617Scheme(java.lang.String challenge) throws MalformedChallengeException
AuthScheme.processChallenge(String)
method
challenge
- authentication challenge
MalformedChallengeException
- is thrown if the authentication challenge is malformedMethod Detail |
---|
public void processChallenge(java.lang.String challenge) throws MalformedChallengeException
processChallenge
in interface AuthScheme
challenge
- the challenge string
MalformedChallengeException
- is thrown if the authentication challenge is malformedprotected java.util.Map<java.lang.String,java.lang.String> getParameters()
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface AuthScheme
name
- The name of the parameter to be returned
public java.lang.String getRealm()
@Deprecated public java.lang.String getID()
Additionally, the ID should take into account any changes to the authentication challenge and return a different value when appropriate. For example when the realm changes in basic authentication it should be considered a different authentication attempt and a different value should be returned.
This method simply returns the realm for the challenge.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |