Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6195613

Need clarification on AccessControlContext.checkPermission()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 5.0u1
    • Fix Version/s: 6
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_9

      Description

      The specification of AccessControlContext.checkPermission() states:

      "Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object."

      However, it is not clear what the behavior is if the current security policy
      contradicts with the protection domain associated with the context of the
      object, i.e., one of them grants the permission but the other one denies the
      permission.

      It seems that the current behavior is that the AccessControlException
      will be thrown if either one of them denies the permission.


      ###@###.### 2004-11-15 23:28:03 GMT

        Attachments

          Activity

            People

            • Assignee:
              xuelei Xue-Lei Fan
              Reporter:
              xwangsunw Xiaozhong Wang (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: