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

Update documentation of the JPasswordField

    XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 17
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      No risk or compatibility issue since this change is solely informative documentation
    • Interface Kind:
      Java API
    • Scope:
      SE

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: