public class OAuthClientState extends Object
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public OAuthClientState(BlobCrypter crypter)
crypter - public OAuthClientState(BlobCrypter crypter, String stateBlob)
crypter - stateBlob - 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)
Copyright © 2007-2012. All Rights Reserved.