|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.gadgets.oauth.OAuthClientState
public class OAuthClientState
Class to handle OAuth fetcher state stored client side. The state is stored as a signed, encrypted, time stamped blob.
| Constructor Summary | |
|---|---|
OAuthClientState(BlobCrypter crypter)
Create a new, empty client state blob. |
|
OAuthClientState(BlobCrypter crypter,
String stateBlob)
Initialize client state based on an encrypted blob passed by the client. |
|
| Method Summary | |
|---|---|
String |
getAccessToken()
OAuth access token. |
String |
getAccessTokenSecret()
OAuth access token secret. |
String |
getEncryptedState()
|
String |
getOwner()
Owner of the OAuth token. |
String |
getRequestToken()
OAuth request token |
String |
getRequestTokenSecret()
OAuth request token secret |
String |
getSessionHandle()
Session handle (http://oauth.googlecode.com/svn/spec/ext/session/1.0/drafts/1/spec.html) |
long |
getTokenExpireMillis()
Expiration of access token (http://oauth.googlecode.com/svn/spec/ext/session/1.0/drafts/1/spec.html) |
boolean |
isEmpty()
|
void |
setAccessToken(String accessToken)
|
void |
setAccessTokenSecret(String accessTokenSecret)
|
void |
setOwner(String owner)
|
void |
setRequestToken(String requestToken)
|
void |
setRequestTokenSecret(String requestTokenSecret)
|
void |
setSessionHandle(String sessionHandle)
|
void |
setTokenExpireMillis(long expirationMillis)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAuthClientState(BlobCrypter crypter)
crypter -
public OAuthClientState(BlobCrypter crypter,
String stateBlob)
crypter - stateBlob - | Method Detail |
|---|
public boolean isEmpty()
public String getEncryptedState()
throws BlobCrypterException
BlobCrypterExceptionpublic String getRequestToken()
public void setRequestToken(String requestToken)
public String getRequestTokenSecret()
public void setRequestTokenSecret(String requestTokenSecret)
public String getAccessToken()
public void setAccessToken(String accessToken)
public String getAccessTokenSecret()
public void setAccessTokenSecret(String accessTokenSecret)
public String getSessionHandle()
public void setSessionHandle(String sessionHandle)
public long getTokenExpireMillis()
public void setTokenExpireMillis(long expirationMillis)
public String getOwner()
public void setOwner(String owner)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||