Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ checkPermissions()

virtual bool Glacier2::PermissionsVerifier::checkPermissions ( std::string userId,
std::string password,
std::string & reason,
const Ice::Current & current ) const
pure virtual

Checks if a user is authorized to establish a session.

Parameters
userIdThe user ID.
passwordThe user's password.
[out]reasonThe reason why access was denied.
currentThe Current object of the incoming request.
Returns
true if access is granted, false otherwise.
Exceptions
Glacier2::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.