<abstract> new SecurityContext(connection, user)
Create the SecurityContext.
Note: Only to be called by framework code. Applications should
retrieve instances by calling login
Parameters:
Name | Type | Description |
---|---|---|
connection |
Connection | The owning connection. |
user |
string | The user identifier. |
Methods
-
getConnection()
-
Get the owning connection.
Returns:
The owning connection.
- Type
- Connection
-
<abstract> getUser()
-
Get the current username.
Returns:
The username
- Type
- string
-
toJSON()
-
Stop serialization of this object.
Returns:
An empty object.
- Type
- Object