public class UserSession
extends java.lang.Object
Represents a user's session on the liberator
A UserSession instance contains an AuthenticationUser
and
information about the session and its connection details.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getApplicationId()
The application identifier provided by the client.
|
java.util.Date |
getConnectionTime()
The time at which the session was connected.
|
java.lang.String |
getIpAddress()
The source ip address of the client's host.
|
java.lang.String |
getMachineId()
The machine identifier provided by the client.
|
java.lang.String |
getSessionId()
The unique session identifier for this session.
|
AuthenticationUser |
getUser()
The user of this session.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.lang.String getApplicationId()
The application identifier provided by the client.
This information can be used for application-specific authentication.
public java.lang.String getIpAddress()
The source ip address of the client's host.
This information can be used for location-based permissioning or blocking specific ip-address ranges. Also can be useful when ejecting sessions using the SessionManager
N.B. This ip address may be a proxy or gateway rather than the client's true ip address
public java.lang.String getMachineId()
The machine identifier provided by the client.
This information can be used for machine-specific permissioning. Can also be useful when ejecting sessions using the SessionManager
public java.util.Date getConnectionTime()
public java.lang.String getSessionId()
The unique session identifier for this session.
These session identifiers are unique per session present in the liberator.
public AuthenticationUser getUser()
The user of this session.
AuthenticationUser
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Please send bug reports and comments to Caplin support