public class PasswordField extends Object
Constructor and Description |
---|
PasswordField() |
Modifier and Type | Method and Description |
---|---|
static String |
getPassword(InputStream in,
String prompt) |
public static final String getPassword(InputStream in, String prompt) throws IOException
in
- stream to be used (e.g. System.in)prompt
- The prompt to display to the user.IOException