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

Sets returned by Subject.get*(Class) should not check for permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.0
    • security-libs
    • None
    • merlin
    • generic
    • generic

      The Sets returned by the variant Subject.get* methods that take a Class parameter (getPrincipals, getPublicCredentials, getPrivateCredentials) enforce the same permission checks that are enforced on the original Sets in the Subject, even though the returned Sets are not backed by the original Sets. I see nothing in the spec about this, nor do I see a good reason for it. (There was a good reason back in EA days when these were still backed by the original Sets.)

            rmartisunw Ramachandran Marti (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: