java.lang.Object
dev.getelements.elements.sdk.model.session.Session
All Implemented Interfaces:
Serializable

public class Session extends Object implements Serializable
Represents a session authorized by Elements. This includes the associated User, Profile, and Application. This has no ID, as the ID is sensitive information. The only time a key for the Session is provided is through a the SessionCreation.getSessionSecret(). The actual ID of the session is hashed in the database and should only be kept on the client. Created by patricktwohig on 6/22/17.
See Also:
  • Field Details

    • SESSION_ATTRIBUTE

      public static final String SESSION_ATTRIBUTE
      Used as the key for the user attribute where appropriate. This is equivalent to the FQN of the Session class.
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • getUser

      public User getUser()
    • setUser

      public void setUser(User user)
    • getProfile

      public Profile getProfile()
    • setProfile

      public void setProfile(Profile profile)
    • getApplication

      public Application getApplication()
    • setApplication

      public void setApplication(Application application)
    • getExpiry

      public long getExpiry()
    • setExpiry

      public void setExpiry(long expiry)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object