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

SubjectDomainCombiner.CacheEntry hashCode and equals don't quite match

XMLWordPrintable

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

      The hashCode method of SubjectDomainCombiner.CacheEntry uses subject.hashCode(), which includes credentials in the hash, but the equals method only compares principals, not credentials. As a result, two Subjects with the same principals but different credentials might not share a cache hit, and if the credentials of a subject change, the cache might be missed.

            claisunw Charlie Lai (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: