Re: Password management
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Sun, 18 Jan 2009 06:32:39 -0800
Arved Sandstrom wrote:
On Sat, 17 Jan 2009 21:52:58 -0500, Arne Vajhøj wrote:
Arved Sandstrom wrote:On Sat, 17 Jan 2009 11:53:33 -0800, Patricia Shanahan wrote:It would have been better than JDialog.Arne Vajhøj wrote:Maybe I'm missing something, but why not JPasswordField?Patricia Shanahan wrote:Looks like it ought to do the job, so I wrote a test. When I run itI want to be able to do some database administration from anIf it is not a GUI app and you are on Java 1.6, then
application. The application will contain checks to prevent
dangerous actions. The required password is one I never write down
or store in plain text anywhere.
I've considered using a JDialog to enter it, but the application
does not make any other use of Swing.
Console.readPassword seems obvious.
under Eclipse, System.console() returns null :-(
But it would still be Swing in a non Swing app.
Arne
Yes, I noticed that about 10 seconds after my reply winged its way into the global information maze...
I don't know what interface the application has - Patricia hasn't said, I don't think, other than it doesn't use Swing - so it's difficult to come up with other ideas.
Here's some clarification on that. Primarily, the application reads from
standard input an XML file containing a bunch of parameters, and writes
to standard output an XML file containing a copy of the parameters and a
set of results. In this form, it runs as a batch program in a cygwin
xterm window under control of make.
I do some reading and grepping on the output file, but also have other
programs that do things like taking output files from a series of runs
and writing a .csv summary that I can read into Excel to generate pretty
charts.
I am in the process of adding an option to write very detailed results
into a relational database, using PostgreSQL. This will allow more
analysis, as well as use of the results in a master's degree research
project my adviser wants to start.
The password issue arises when unit testing the database output. As
it is, I have to create the test database using a very privileged
account. I would like to be able to create and destroy test databases
automatically, rather than doing so manually. I do my development and
unit testing in Eclipse.
The program is part of my research project, so I am both the entire
development team and the only user.
Patricia
.
- Follow-Ups:
- Re: Password management
- From: Martin Gregorie
- Re: Password management
- References:
- Password management
- From: Patricia Shanahan
- Re: Password management
- From: Arne Vajhøj
- Re: Password management
- From: Patricia Shanahan
- Re: Password management
- From: Arved Sandstrom
- Re: Password management
- From: Arne Vajhøj
- Re: Password management
- From: Arved Sandstrom
- Password management
- Prev by Date: Re: Password management
- Next by Date: Re: how i can call synchronized method with timeout?
- Previous by thread: Re: Password management
- Next by thread: Re: Password management
- Index(es):
Relevant Pages
|