com.dyuproject.oauth
Class TokenExchange

java.lang.Object
  extended by com.dyuproject.oauth.TokenExchange

public abstract class TokenExchange
extends Object

Responsible for including certain oath request parameters based from the state of the token.

Author:
David Yu
Date created:
Jun 1, 2009

Field Summary
static TokenExchange ACCESS_TOKEN
          Exchanges the request token for an access token from the service provider.
static TokenExchange REQUEST_TOKEN
          This is the initial step; basically obtains a request token from the service provider.
 
Constructor Summary
TokenExchange()
           
 
Method Summary
static TokenExchange getExchange(Token token)
          Gets the appropriate exchange to use based on the given token.
abstract  void put(UrlEncodedParameterMap params, Endpoint ep, Token token)
          Puts the necessary parameters on the request params based from the given endpoint and token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_TOKEN

public static final TokenExchange REQUEST_TOKEN
This is the initial step; basically obtains a request token from the service provider.


ACCESS_TOKEN

public static final TokenExchange ACCESS_TOKEN
Exchanges the request token for an access token from the service provider.

Constructor Detail

TokenExchange

public TokenExchange()
Method Detail

getExchange

public static TokenExchange getExchange(Token token)
Gets the appropriate exchange to use based on the given token.


put

public abstract void put(UrlEncodedParameterMap params,
                         Endpoint ep,
                         Token token)
Puts the necessary parameters on the request params based from the given endpoint and token.



Copyright © 2008-2013. All Rights Reserved.