Class Session
java.lang.Object
dev.getelements.elements.sdk.model.session.Session
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Used as the key for the user attribute where appropriate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getUser()
int
hashCode()
void
setApplication
(Application application) void
setExpiry
(long expiry) void
setProfile
(Profile profile) void
toString()
-
Field Details
-
SESSION_ATTRIBUTE
Used as the key for the user attribute where appropriate. This is equivalent to the FQN of theSession
class.
-
-
Constructor Details
-
Session
public Session()
-
-
Method Details