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

Need clarification on AccessControlContext.checkPermission()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0u1
    • security-libs
    • beta
    • sparc
    • solaris_9

      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

            xuelei Xuelei Fan
            xwangsunw Xiaozhong Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: