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

Release Note: New Implementation Note for LoginModule on Removing Null from a Principals or Credentials Set

XMLWordPrintable

    • Icon: Backport Backport
    • Resolution: Delivered
    • Icon: P4 P4
    • 11.0.18-oracle
    • 11.0.18-oracle
    • security-libs
    • None

      The `Set` implementation that holds principals and credentials in a JAAS `Subject` prohibits null elements and any attempt to add, query, or remove a null element will result in a `NullPointerException`. This is especially important when trying to remove principals or credentials from the subject at the logout phase but they are null because of a previous failed login. Various JDK `LoginModule` implementations have been fixed to avoid the exception. Developers should verify and if necessary update any custom `LoginModule` implementations to be compliant with this implementation advice.

            jnibedita Nibedita Jena
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: