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

Update documentation of the JPasswordField

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 17
    • client-libs
    • None
    • minimal
    • No risk or compatibility issue since this change is solely informative documentation
    • Java API
    • SE

      Summary

      The reference to the "Secure Coding Guidelines" is added to the javax.swing.JPasswordField class description.

      Problem

      Additional information about "handling confidential information" can help to use the JPasswordField properly.

      Solution

      The link to the "Secure Coding Guidelines" is added.

      Specification

      + * <strong>Warning:</strong> The {@code JPasswordField} will not show the
      + * original characters that were typed, instead displaying alternative text or
      + * graphics. However this doesn't prevent the password from appearing in the
      + * system memory. For handling confidential information such as the password
      + * text, refer to the relevant section at
      + * <a href="https://www.oracle.com/java/technologies/javase/seccodeguide.html">
      + * Secure Coding Guidelines</a>.
      + * <p>
        * <strong>Warning:</strong> Swing is not thread safe. For more

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: