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

Methods of Subject that throw SecurityException do not specify what permissions are required

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 6
    • security-libs
    • b28
    • generic
    • generic

        Look at the descriptions for the methods 'equals' and 'hashCode' of class javax.security.auth.Subject

        ==== hashCode ====
        Throws:
            SecurityException - if the caller does not have permission to access this Subject's private credentials.
        ==================

        ==== equals ====
        Throws:
            SecurityException - if the caller does not have permission to access the private credentials for this Subject, or if the caller does not have permission to access the private credentials for the provided Subject.
        =================

        Both description says nothing about required set of permissions which must be granted to have access to the private credentials. If it's specified somewhere in another place it would be better to provide the link to that description.

              mullan Sean Mullan
              alyanguz Alexey Lyanguzov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: