function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CovenantCovenant 

General Java question.

Is there a console password masking class/method for Java?  I googled for this topic and only found some stupid method that used threads to delete characters echoed to the screen.  Sounds like a serious kludge, to me, and I'd prefer not to use it.
 
Any help would be appreciated.
 
Thanks,
 
- Brendan
RichardRichard
I'm afraid you are scuppered...

it is either the way you are suggesting:
http://java.sun.com/features/2002/09/pword_mask.html

or for an alternative method using JNI...

http://forum.java.sun.com/thread.jsp?forum=4&thread=195678

Take your pick!

This topic should probably be kept to Java message boards though... and not Salesforce>Java Development ones!

Hope you get it working!

Rich