Bug 53457 - Could use System.console() for password prompting
Summary: Could use System.console() for password prompting
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-22 18:58 UTC by Sebb
Modified: 2012-06-23 16:24 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2012-06-22 18:58:09 UTC
Java 1.6 offers a Console class with password facilities.

This could be used for the SSLManager and elsewhere.
Comment 1 Philippe Mouawad 2012-06-23 15:49:44 UTC
Hello,
I thought we had decided to remove prompting in bug:
Bug 52131 - Eliminate DefaultKeyStore and simplify code

As it introduced different behaviour between gui and non gui.

Regards
Philippe
Comment 2 Sebb 2012-06-23 16:24:40 UTC
If the SSLManager code is changed to use the Console, then it will work in both GUI and non-GUI mode. That would be an alternate solution to the remaining issue on Bug 52131.

Even if not used in SSLManager, there will probably be other places where it could be used, e.g. it might be useful to have a password function.