public class OAuthClientState extends AbstractSecurityToken
AbstractSecurityToken.KeysDEFAULT_MAX_TOKEN_TTL| 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 |
getAuthenticationMode() |
String |
getEncryptedState() |
protected EnumSet<AbstractSecurityToken.Keys> |
getMapKeys() |
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)
|
String |
getUpdatedToken() |
boolean |
isAnonymous() |
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) |
protected AbstractSecurityToken |
setTimeSource(TimeSource timeSource) |
void |
setTokenExpireMillis(long expirationMillis) |
enforceNotExpired, getActiveUrl, getAppId, getAppUrl, getContainer, getDomain, getExpiresAt, getMaxTokenTTL, getModuleId, getOwnerId, getTimeSource, getTrustedJson, getViewerId, isExpired, loadFromMap, setActiveUrl, setAppId, setAppUrl, setContainer, setDomain, setExpires, setExpires, setExpiresAt, setModuleId, setOwnerId, setTrustedJson, setViewerId, toMappublic 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)
public String getUpdatedToken()
public String getAuthenticationMode()
public boolean isAnonymous()
protected EnumSet<AbstractSecurityToken.Keys> getMapKeys()
getMapKeys in class AbstractSecurityTokenprotected AbstractSecurityToken setTimeSource(TimeSource timeSource)
setTimeSource in class AbstractSecurityTokenCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.