Interface PermissionsVerifier

All Superinterfaces:
Object

public interface PermissionsVerifier extends 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.
  • 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 returning false with a reason set in the reason out parameter.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::Glacier2::PermissionsVerifier"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      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 interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.