Class UserSession
Represents a user's session on the liberator
A UserSession instance contains an AuthenticationUser
and
information about the session and its connection details.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The application identifier provided by the client.The time at which the session was connected.The source ip address of the client's host.The machine identifier provided by the client.The unique session identifier for this session.getUser()
The user of this session.int
hashCode()
toString()
-
Method Details
-
getApplicationId
The application identifier provided by the client.
This information can be used for application-specific authentication.
- Returns:
- the application identifier provided by the client attempting login
-
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
- Returns:
- the source ip address of the session's connection
-
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
- Returns:
- the machine identifier provided by the client attempting login
-
getConnectionTime
The time at which the session was connected.- Returns:
- the time at which the session was connected.
-
getSessionId
The unique session identifier for this session.
These session identifiers are unique per session present in the liberator.
- Returns:
- the unique session identifier allocated by the liberator for this user session
-
getUser
The user of this session.
- Returns:
- the authentication user associated with this session
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-