- All Superinterfaces:
Object
Represents an object that checks user permissions. The Glacier2 router and other services use a
PermissionsVerifierPrx
proxy when the user is authenticated using a user ID and password.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Holds the result of operation checkPermissions.Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptioncheckPermissions
(String userId, String password, Current current) Checks if a user is authorized to establish a session.default CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
checkPermissions
PermissionsVerifier.CheckPermissionsResult checkPermissions(String userId, String password, Current current) throws PermissionDeniedException Checks if a user is authorized to establish a session.- Parameters:
userId
- The user ID.password
- The user's password.current
- The Current object of the incoming request.- Returns:
- An instance of PermissionsVerifier.CheckPermissionsResult.
- Throws:
PermissionDeniedException
- Thrown when the user's access is denied. This exception can be thrown instead of returningfalse
with a reason set in the reason out parameter.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Glacier2::PermissionsVerifier"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-