public class QBSession extends QBEntity
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
tokenExpirationDate |
Constructor and Description |
---|
QBSession() |
Modifier and Type | Method and Description |
---|---|
void |
copyFieldsTo(QBEntity entity)
Copy the data of all fields to another instance
|
java.lang.Integer |
getAppId()
Get the application identifier
|
long |
getDeviceId()
Get the device identifier
|
int |
getNonce()
Get the nonce
|
long |
getTimestamp()
Get the timestamp
|
java.lang.String |
getToken()
Get session token
|
java.util.Date |
getTokenExpirationDate() |
int |
getUserId()
Get the user identifier
|
boolean |
isValidToken() |
void |
setAppId(java.lang.Integer appId) |
void |
setDeviceId(java.lang.Integer deviceId) |
void |
setNonce(java.lang.Integer nonce) |
void |
setTimestamp(java.lang.Integer timestamp) |
void |
setToken(java.lang.String token) |
void |
setUserId(int userId) |
java.lang.String |
toString() |
equals, getCreatedAt, getFCreatedAt, getFUpdatedAt, getId, getUpdatedAt, hashCode, setCreatedAt, setId, setUpdatedAt
public java.lang.String getToken()
public void setToken(java.lang.String token)
public java.lang.Integer getAppId()
public void setAppId(java.lang.Integer appId)
public int getUserId()
public void setUserId(int userId)
public long getDeviceId()
public void setDeviceId(java.lang.Integer deviceId)
public long getTimestamp()
public void setTimestamp(java.lang.Integer timestamp)
public int getNonce()
public void setNonce(java.lang.Integer nonce)
public java.util.Date getTokenExpirationDate()
public void copyFieldsTo(QBEntity entity)
QBEntity
copyFieldsTo
in class QBEntity
entity
- receiver instancepublic boolean isValidToken()