How To Accept Password From Console in Java

    Date: 01/12/06 (Java Web)    Keywords: java

    Finally you can easily accept password from console in Java, without echoing them. This long unmet need has been addressed in JDK 1.6 codeline. A new class - java.io.Console has been defined to handle console I/O. To accept password from console in JDK 6.0 (aka JDK 1.6) use either: public char[] readPassword() or public char[] readPassword(String fmt, Object… args) Sample code: [...]

    Source: http://blog.taragana.com/index.php/archive/how-to-accept-password-from-console-in-java/

« Super Realistic Computer... || JDK1.6 / JDK 6.0 Downloaded? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home