United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4050435 Improved interactive console I/O (password prompting, line editing)
JDK-4050435 : Improved interactive console I/O (password prompting, line editing)

Details
Type:
Enhancement
Submit Date:
1997-05-07
Status:
Resolved
Updated Date:
2005-11-21
Project Name:
JDK
Resolved Date:
2005-10-14
Component:
core-libs
OS:
solaris_9,windows_nt,linux,generic,windows_2000
Sub-Component:
java.io
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
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
Fixed Versions:

Related Reports
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

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

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
                                     
186-10-02 0
PUBLIC COMMENTS

.
                                     
2004-10-02
EVALUATION

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



Hardware and Software, Engineered to Work Together