private char [ ] readPassword ( String description , boolean echoInput ) { getConsole ( ) . print ( description + ": " ) ; return getConsole ( ) . readPassword ( echoInput ) ; }
Invoke Console . readPassword through reflection to avoid depending on Java 6 .