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

Buffer clean in PasswordCallback

    XMLWordPrintable

Details

    • b21
    • Verified

    Backports

      Description

        There were a lot efforts to clean up the buffered passwords. The PasswordCallback.setPassword() clones the password, but is not registered for cleanup. An application could call clearPassword() for the purpose, but it would be nice to cleanup the buffer as well if clearPassword() was not called in an application. If the setPassword() get called multiple times, the clearPassword() should also be called the same times if not relying on finalization. It could be fragile in practice.

        Attachments

          Issue Links

            Activity

              People

                xuelei Xuelei Fan
                xuelei Xuelei Fan
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: