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 StringUsed as the key for the user attribute where appropriate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetUser()inthashCode()voidsetApplication(Application application) voidsetExpiry(long expiry) voidsetProfile(Profile profile) voidtoString()
-
Field Details
-
SESSION_ATTRIBUTE
Used as the key for the user attribute where appropriate. This is equivalent to the FQN of theSessionclass.
-
-
Constructor Details
-
Session
public Session()
-
-
Method Details