@Entity public class GoogleAccessInfoImpl extends Object implements GoogleAccessInfo
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId |
protected String |
errorMessage |
protected Boolean |
lastAttemptSuccessful |
protected Date |
lastUpdateTime |
protected String |
refreshToken |
protected Date |
timeout |
protected String |
token |
protected String |
tokenType |
| Constructor and Description |
|---|
GoogleAccessInfoImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getClientId()
Primary key representing a clientId for which access was granted or attempted.
|
String |
getErrorMessage()
Returns the last error message received.
|
boolean |
getLastAttemptSuccessful()
Returns true if last attempt to obtain a token was successful.
|
Date |
getLastUpdateTime()
Returns the last time an attempt to create an access token occurred
|
String |
getRefreshToken()
Returns a refresh token to use for this info.
|
Date |
getTimeout()
The timeout of the current token.
|
String |
getToken()
Returns the last valid access token
|
String |
getTokenType()
Returns the last valid access token
|
int |
hashCode() |
boolean |
isTokenExpired()
Returns true if the
GoogleAccessInfo.getTimeout() is greater than right now. |
void |
setClientId(String clientId)
Sets the clientId for which this accessInfo applies.
|
void |
setErrorMessage(String errorMessage)
Sets the error message if a request for a token was unsuccessful
|
void |
setLastAttemptSuccessful(boolean lastAttemptSuccessful)
Sets whether the last attempt was successful
|
void |
setLastUpdateTime(Date lastUpdateTime)
Stores the last time an attempt to create an access token occurred
|
void |
setRefreshToken(String refreshToken)
Sets a refresh token to use for this info.
|
void |
setTimeout(Date timeout)
Sets the timeout of the current token.
|
void |
setToken(String token)
Sets an access token to use for this info.
|
void |
setTokenType(String tokenType)
Sets an access token to use for this info.
|
protected String clientId
protected String token
protected String refreshToken
protected String tokenType
protected Date timeout
protected Boolean lastAttemptSuccessful
protected String errorMessage
protected Date lastUpdateTime
public String getClientId()
GoogleAccessInfogetClientId in interface GoogleAccessInfopublic void setClientId(String clientId)
GoogleAccessInfosetClientId in interface GoogleAccessInfopublic String getToken()
GoogleAccessInfogetToken in interface GoogleAccessInfopublic void setToken(String token)
GoogleAccessInfosetToken in interface GoogleAccessInfopublic String getRefreshToken()
GoogleAccessInfogetRefreshToken in interface GoogleAccessInfopublic void setRefreshToken(String refreshToken)
GoogleAccessInfosetRefreshToken in interface GoogleAccessInfopublic String getTokenType()
GoogleAccessInfogetTokenType in interface GoogleAccessInfopublic void setTokenType(String tokenType)
GoogleAccessInfosetTokenType in interface GoogleAccessInfopublic Date getTimeout()
GoogleAccessInfogetTimeout in interface GoogleAccessInfopublic void setTimeout(Date timeout)
GoogleAccessInfosetTimeout in interface GoogleAccessInfopublic boolean getLastAttemptSuccessful()
GoogleAccessInfogetLastAttemptSuccessful in interface GoogleAccessInfopublic void setLastAttemptSuccessful(boolean lastAttemptSuccessful)
GoogleAccessInfosetLastAttemptSuccessful in interface GoogleAccessInfopublic String getErrorMessage()
GoogleAccessInfogetErrorMessage in interface GoogleAccessInfopublic void setErrorMessage(String errorMessage)
GoogleAccessInfosetErrorMessage in interface GoogleAccessInfopublic Date getLastUpdateTime()
GoogleAccessInfogetLastUpdateTime in interface GoogleAccessInfopublic void setLastUpdateTime(Date lastUpdateTime)
GoogleAccessInfosetLastUpdateTime in interface GoogleAccessInfopublic boolean isTokenExpired()
GoogleAccessInfoGoogleAccessInfo.getTimeout() is greater than right now. If timeout is null returns false.isTokenExpired in interface GoogleAccessInfoCopyright © 2019. All rights reserved.