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