Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-6985

Implement RestrictedMethodAuthorizer

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • querying

    Description

      Implement the RestrictedMethodAuthorizer class.

      • Make sure the class is immutable and thread safe.
      • Add two new public methods to the implementation:
        • isAllowedGeodeMethod: it should return true when the Method on the target Object is considered safe (Region.get, Region.entrySet, Region.keySet, Region.values, Region.getEntries, Region.getValues, Region.containsKey, Region.getKey and Region.getValue), and false otherwise.
        • isKnownDangerousMethod: it should return true when the Method on the target Object is known to be a non-safe method. Including but not limited to getClass, which allows the user to execute anything using reflection.
      • Implement unit tests for the class and all of its methods.
      • Add comprehensive and clear documentation to the class and all its public methods so customers can use it without leaving their IDE.

      Attachments

        Issue Links

          Activity

            People

              jjramos Juan Ramos
              jjramos Juan Ramos
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m