Package 

Class Session

  • All Implemented Interfaces:

    
    public class Session
    
                        

    The session is the value object for the session of a user.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Session(String accessToken, Date expirationDate)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getAccessToken() The session's access token.
      Date getExpirationDate() The expiration date of the access token.
      boolean hasExpired() Uses the current locale's time to check whether or not this session has already expired.
      static Session fromAPIResponse(SessionToken apiResponse)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait