Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8015081 javax.security.auth.Subject.toString() throws NPE
  3. JDK-8173069

Release Note: Disallow null values for Subject inputs

    XMLWordPrintable

    Details

      Description

      Inputs to the javax.security.auth.Subject class now prohibit null values in the constructors and modification operations on the Principal and credential Set objects returned by Subject methods.

      For the non-default constructor, the principals, pubCredentials, and privCredentials parameters may not be null, nor may any element within the Sets be null. A NullPointerException will be thrown if null values are provided.

      For operations performed on Set objects returned by getPrincipals(), getPrivateCredentials() and getPublicCredentials(), a NullPointerException is thrown under the following conditions:
      * add(), remove(), or contains() uses a null parameter.
      * addAll(), removeAll(), containsAll() or retainsAll() provides a Collection containing a null element.

        Attachments

          Activity

            People

            Assignee:
            jnimeh Jamil Nimeh
            Reporter:
            jnimeh Jamil Nimeh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: