Ice 3.8
Slice API Reference
Loading...
Searching...
No Matches

◆ checkPermissions()

["cpp:const"]
idempotent bool checkPermissions ( string userId,
string password,
out string reason ) throws PermissionDeniedException

Checks if a user is authorized to establish a session.

Parameters
userIdThe user ID.
passwordThe user's password.
reasonThe reason why access was denied.
Returns
true if access is granted, false otherwise.
Exceptions
PermissionDeniedExceptionThrown when the user's access is denied. This exception can be thrown instead of returning false with a reason set in the reason out parameter.