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

JPasswordField should be made more dynanmic about echoing characters

    XMLWordPrintable

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      Right now JPasswordField can be made to echo a single character on press of key
      This is being configured by user using setEchoChar API of JPasswordField.
      It can be good if following support can be added:
      - Support in setEchoChar for null character. Ideally if user set null character, he expects no
        echo char, so that nothing is displayed when he type on passwordfield i.e something like solaris
        login screen. But right now if user call
        setEchoChar('\u0000');//Null character
        than JPasswordField will display whatever user types as such.
      - JPasswordField should be able to display more than one echo characters at press of one key event.
        i.e instead of echo char, I should be able to have echo String.
      - JPasswordField should be able to display echo string with random characters in it.
        Say following will be process of typing password 'abc'
        a === ***
        b === *****
        c === ***********
        This kind of feature can be used by application which are highly secure but still many people maybe
        looking at your screen when you using it, and this overcomes the problem if there is no echo character
        which confuses user on press of backspace. This is widely used and liked feature, you can see it
        working in application like IBM Lotus notes.
      One advantage of all the above points is that someone looking at screen will not be able to guess
      password length easily, which can be dangerous mainly incases where password is numeric(PIN) and of
      small length.

      ###@###.### 2004-03-12

        Attachments

          Activity

            People

            Assignee:
            peterz Peter Zhelezniakov
            Reporter:
            hsinghsunw Hemant Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Imported:
              Indexed: