Forums Register Login

Retrieve password from console

+Pie Number of slices to send: Send
Hi All,

I have a requirement to take password from console.
For jdk 6 there is a way to get it :

System.console().readPassword()

But, my problem is that, I have to do it using jdk 5, is there any equivalent way of doing it.

+Pie Number of slices to send: Send
That's not a simple task. You could mask the user input yourself (printing "\010*") or take use of os specific functions. Both ways have their weak points.

-> http://stackoverflow.com/questions/1108937/how-to-mask-a-password-in-java-5
Beauty is in the eye of the tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 936 times.
Similar Threads
WAS Security
HELP! Logging into WebLogic9.2
How to reset login username and password in administration console??
username and passward for new server
Get password from Console
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:42:32.