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

Specify that the access control context parameters of Subject.doAsPrivileged are ignored

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 24
    • security-libs
    • None
    • behavioral
    • minimal
    • Java API
    • SE

      Summary

      Specify that the access control context parameters of Subject.doAsPrivileged are ignored. This spec update was missed as part of JEP 486.

      Problem

      With JEP 486 integrated, the access control context parameters of Subject.doAsPrivileged no longer apply and are ignored. The specification needs to be updated to specify that these parameters are ignored.

      Solution

      See specification.

      Specification

      Change the acc param of Subject.doAsPrivileged(Subject, PrivilegedAction, AccessControlContext) and Subject.doAsPrivileged(Subject, PrivilegedExceptionAction, AccessControlContext) from:

      @param acc the {@code AccessControlContext} to be tied to the
                                      specified <i>subject</i> and <i>action</i>.

      to:

      @param acc ignored

            mullan Sean Mullan
            mullan Sean Mullan
            Brent Christian, Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: