|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.oauth.TokenExchange
public abstract class TokenExchange
Responsible for including certain oath request parameters based from the state of the token.
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 |
---|
public static final TokenExchange REQUEST_TOKEN
public static final TokenExchange ACCESS_TOKEN
Constructor Detail |
---|
public TokenExchange()
Method Detail |
---|
public static TokenExchange getExchange(Token token)
public abstract void put(UrlEncodedParameterMap params, Endpoint ep, Token token)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |