JDK-4050435 : Improved interactive console I/O (password prompting, line editing)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version:
    1.1,1.1.5,1.1.6,1.1.7,1.2.0,1.3.0,1.3.1,1.4.0,1.4.2,5.0 1.1,1.1.5,1.1.6,1.1.7,1.2.0,1.3.0,1.3.1,1.4.0,1.4.2,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,linux,solaris_9,windows_nt,windows_2000 generic,linux,solaris_9,windows_nt,windows_2000
  • CPU: generic,x86
  • Submitted: 1997-05-07
  • Updated: 2017-05-16
  • Resolved: 2005-10-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b57Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
I need the ability to safely prompt for a passphrase, of arbitrary
length, without echoing output.  This is like the getpass(3C) does,
but that truncates the input string and so calling that isn't good
enough to address the real requirement.

Not all applications of Java can assume that a GUI is available,
so AWT's setEchoChar stuff is not usable for this problem. 

Comments
EVALUATION Will provide a simple password-prompting facility much like that available in C as via the getpass(3C) function, in Mustang.
27-09-2005

PUBLIC COMMENTS .
02-10-2004

EVALUATION In addition to supporting getpass-like functionality, we should also look in to supporting simple line-oriented editing operations. These are necessarily somewhat platform-specific (e.g., Linux readline() vs. the DOS command prompt), but the addition of this feature would make it much easier to write simple non-GUI, command-driven programs. This RFE does not propose to define a general curses-like facility, which would be much more complex and, in a world where bitmapped displays are ubiquitous, arguably unnecessary. Under consideration for Tiger. -- ###@###.### 2002/2/20
02-10-0186