Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1526

Jacc: Request for the DelegatingPolicy.getPermissions(x) to also return the permissions of the replaced delegate

    XMLWordPrintable

Details

    Description

      Jacc: Request for the DelegatingPolicy.getPermissions to also return the permissions of the replaced delegate

      According to the JACC specification all Permissions of a CodeSource or ProtectionDomain should be returned. Currently these methods return only the JACC Permissions, without the Permissions of the delegate class.

      The JACC Specification states (http://java.sun.com/j2ee/javaacc/):
      2.5 What a Provider Must Do
      <paragraph 3>
      A replacement Policy object must assume responsibility for performing all policy decisions within the JRE in which it is installed that are requested by way of the Policy interface that it implements.

      Example Implementation of DelegatingPolicy.getPermissions:

      public PermissionCollection getPermissions(ProtectionDomain domain) {
      PermissionCollection pc = super.getPermissions(domain);
      PermissionCollection delegated = delegate.getPermissions(domain);
      for (Enumeration e = delegated.elements(); e.hasMoreElements()

      { Permission p = (Permission) e.nextElement(); pc.add(p); }

      return pc;
      }

      Regards,
      Andrea

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            wv-javacoder Roland Räz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified