public class UserSession
extends java.lang.Object
Constructor and Description |
---|
UserSession(java.lang.String username) |
Modifier and Type | Method and Description |
---|---|
void |
addSessionId(java.lang.String remoteAddress,
java.lang.String sessionId) |
java.time.Instant |
getLastSeen() |
java.time.Instant |
getOldestLoginTime() |
java.lang.String |
getSessionId(java.lang.String remoteAddress) |
java.lang.String |
getUsername() |
void |
overwriteOldestLoginTime(java.time.Instant loginTime) |
java.lang.String |
removeSessionId(java.lang.String remoteAddress) |
void |
setLastSeen(java.time.Instant lastSeen) |
public java.lang.String getUsername()
public java.lang.String getSessionId(java.lang.String remoteAddress)
public void addSessionId(java.lang.String remoteAddress, java.lang.String sessionId)
public java.lang.String removeSessionId(java.lang.String remoteAddress)
public java.time.Instant getOldestLoginTime()
public void overwriteOldestLoginTime(java.time.Instant loginTime)
public java.time.Instant getLastSeen()
public void setLastSeen(java.time.Instant lastSeen)