com.fitbit.api.client.http
Class TempCredentials

java.lang.Object
  extended by com.fitbit.api.client.http.TempCredentials
All Implemented Interfaces:
Serializable

public class TempCredentials
extends Object

Follows the naming convention used at http://tools.ietf.org/html/draft-hammer-oauth-10#section-2.1 to represent a set of temporary credentials obtained from the server by making an authenticated HTTP "POST" request to the Temporary Credential Request endpoint. 1. The client obtains a set of temporary credentials from the server (in the form of an identifier and shared-secret). The temporary credentials are used to identify the access request throughout the authorization process. 2. The resource owner authorizes the server to grant the client's access request (identified by the temporary credentials). 3. The client uses the temporary credentials to request a set of token credentials from the server, which will enable it to access the resource owner's protected resources.

See Also:
Serialized Form

Method Summary
 boolean equals(Object o)
           
 AccessToken getAccessToken()
           
 String getAuthenticationURL()
           
 String getAuthorizationURL()
           
 String getParameter(String parameter)
           
 String getToken()
           
 String getTokenSecret()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAuthorizationURL

public String getAuthorizationURL()

getAuthenticationURL

public String getAuthenticationURL()

getAccessToken

public AccessToken getAccessToken()
                           throws FitbitAPIException
Throws:
FitbitAPIException

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getToken

public String getToken()

getTokenSecret

public String getTokenSecret()

getParameter

public String getParameter(String parameter)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.