public interface UserSession
UserSession represents login user information in the Monitor Server.| Modifier and Type | Method and Description |
|---|---|
long |
getCreatedTime()
Gets the time when the user session was created.
|
java.lang.String |
getID()
Gets user session's ID.
|
long |
getLastAccessTime()
Gets the user session's last access time.
|
int |
getMaxInactiveInterval()
Gets the user session's maximum inactive interval time (in milliseconds).
|
java.lang.String |
getRealm()
Gets the realm value of the session.
|
java.lang.String |
getUserID()
Gets the user's ID.
|
void |
invalidate()
Invalidates a user session.
|
boolean |
isValid()
Judges whether or not the user session is valid.
|
void |
refreshLastAccessTime()
Refreshes the last access time of the session.
|
void |
setMaxInactiveInterval(int interval)
Sets a user session's maximum inactive interval time (in milliseconds).
|
java.lang.String getID()
java.lang.String getRealm()
java.lang.String getUserID()
boolean isValid()
void invalidate()
long getCreatedTime()
long getLastAccessTime()
void refreshLastAccessTime()
throws InvalidUserSessionException
InvalidUserSessionException - if an InvalidUserSessionException has occurred.InvalidUserSessionExceptionint getMaxInactiveInterval()
void setMaxInactiveInterval(int interval)
interval - The maximum inactive interval time of the session.