Methods Summary |
---|
public static java.lang.String | getPassword(java.lang.String prompt)Convenience method. Print the prompt and then get the user's input
System.loadLibrary("cliutil");
if(prompt != null && prompt.length() > 0)
System.out.print(prompt);
return getPassword();
|
public static java.lang.String | getPassword()Get the user's input
return new NativeUtils().getPasswordNative();
|
public native java.lang.String | getPasswordNative()native function to get a String from stdin without echoing the characters.
Note that the native code will be derprecated once JDK 1.6 is required.
|