Class PermissionsVerifier.CheckPermissionsResult

java.lang.Object
com.zeroc.Glacier2.PermissionsVerifier.CheckPermissionsResult
Enclosing interface:
PermissionsVerifier

public static class PermissionsVerifier.CheckPermissionsResult extends Object
Holds the result of operation checkPermissions.
  • Field Details

    • returnValue

      public boolean returnValue
      true if access is granted, false otherwise.
    • reason

      public String reason
      The reason why access was denied.
  • Constructor Details

    • CheckPermissionsResult

      public CheckPermissionsResult()
      Default constructor.
    • CheckPermissionsResult

      public CheckPermissionsResult(boolean returnValue, String reason)
      This constructor makes shallow copies of the results for operation checkPermissions.
      Parameters:
      returnValue - true if access is granted, false otherwise.
      reason - The reason why access was denied.
  • Method Details

    • write

      public void write(OutputStream ostr)
      Marshals the result for the checkPermissions operation.
      Parameters:
      ostr - the output stream to write this result to
    • read

      public void read(InputStream istr)
      Unmarshals the result of the checkPermissions operation.
      Parameters:
      istr - the input stream to read this result from