Methods Summary |
---|
public void | clearPassword()Clear the retrieved password.
if (inputPassword != null) {
for (int i = 0; i < inputPassword.length; i++)
inputPassword[i] = ' ";
}
|
public char[] | getPassword()Get the retrieved password.
This method returns a copy of the retrieved password.
return (inputPassword == null?
null : (char[])inputPassword.clone());
|
public java.lang.String | getPrompt()Get the prompt.
return prompt;
|
public boolean | isEchoOn()Return whether the password
should be displayed as it is being typed.
return echoOn;
|
public void | setPassword(char[] password)Set the retrieved password.
This method makes a copy of the input password
before storing it.
this.inputPassword = (password == null ?
null : (char[])password.clone());
|