Underlying security services instantiate and pass a
PasswordCallback to the handle
method of a CallbackHandler to retrieve password information.
javax.security.auth.callback.CallbackHandler
| Modifier and Type | Field and Description |
|---|---|
| private transient Cleaner. | |
| private final boolean | |
| private char[] | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | PasswordCallback(String
the prompt used to request the password. prompt, boolean true if the password should be displayed
as it is being typed. echoOn)Construct a |
| Modifier and Type | Method and Description |
|---|---|
| private static Runnable | |
| public void | |
| public char[] | |
| public String | |
| public boolean | Returns: the whether the password should be displayed as it is being typed.Return whether the password should be displayed as it is being typed. |
| private void | readObject(ObjectInputStream
the stream)ObjectInputStream from which data is readRestores the state of this object from the stream. |
| public void |
| cleanable | back to summary |
|---|---|
| private transient Cleaner. | |
| echoOn | back to summary |
|---|---|
private final boolean echoOn
| |
| inputPassword | back to summary |
|---|---|
private char[] inputPassword
| |
| prompt | back to summary |
|---|---|
private final String prompt
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID
| |
| PasswordCallback | back to summary |
|---|---|
| public PasswordCallback(String prompt, boolean echoOn) Construct a
| |
| cleanerFor | back to summary |
|---|---|
| private static Runnable cleanerFor(char[] password) | |
| clearPassword | back to summary |
|---|---|
| public void clearPassword() Clear the retrieved password. | |
| getPassword | back to summary |
|---|---|
| public char[] getPassword() Get the retrieved password. This method returns a copy of the retrieved password.
| |
| getPrompt | back to summary |
|---|---|
| public String getPrompt() Get the prompt.
| |
| isEchoOn | back to summary |
|---|---|
| public boolean isEchoOn() Return whether the password should be displayed as it is being typed.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Restores the state of this object from the stream.
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(char[] password) Set the retrieved password. This method makes a copy of the input
| |