Creates a client session.
- Parameters
-
userId | The user ID. |
password | The password for the given user. |
- Returns
- A proxy to the newly created session. This proxy is never null.
- Exceptions
-
PermissionDeniedException | Thrown when authentication or authorization fails. |