-
- All Implemented Interfaces:
public class SessionThe session is the value object for the session of a user.
-
-
Method Summary
Modifier and Type Method Description StringgetAccessToken()The session's access token. DategetExpirationDate()The expiration date of the access token. booleanhasExpired()Uses the current locale's time to check whether or not this session has already expired. static SessionfromAPIResponse(SessionToken apiResponse)-
-
Method Detail
-
getAccessToken
String getAccessToken()
The session's access token.
-
getExpirationDate
Date getExpirationDate()
The expiration date of the access token.
-
hasExpired
boolean hasExpired()
Uses the current locale's time to check whether or not this session has already expired.
-
fromAPIResponse
static Session fromAPIResponse(SessionToken apiResponse)
-
-
-
-