Underlying security services instantiate and pass a
TextInputCallback
to the handle
method of a CallbackHandler
to retrieve generic text
information.
javax.security.auth.callback.CallbackHandler
Modifier and Type | Field and Description |
---|---|
private final String | |
private String | |
private final String | |
private static final long |
Access | Constructor and Description |
---|---|
public | TextInputCallback(String
the prompt used to request the information. prompt)Construct a |
public | TextInputCallback(String
the prompt used to request the information. prompt, String the text to be used as the default text displayed
with the prompt. defaultText)Construct a |
Modifier and Type | Method and Description |
---|---|
public String | Returns: the default text, or null if thisTextInputCallback
was not instantiated with defaultText .Get the default text. |
public String | |
public String | |
public void |
defaultText | back to summary |
---|---|
private final String defaultText
|
inputText | back to summary |
---|---|
private String inputText
|
prompt | back to summary |
---|---|
private final String prompt
|
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID
|
TextInputCallback | back to summary |
---|---|
public TextInputCallback(String prompt) Construct a
|
TextInputCallback | back to summary |
---|---|
public TextInputCallback(String prompt, String defaultText) Construct a
|
getDefaultText | back to summary |
---|---|
public String getDefaultText() Get the default text.
|
getPrompt | back to summary |
---|---|
public String getPrompt() Get the prompt.
|
getText | back to summary |
---|---|
public String getText() Get the retrieved text. |
setText | back to summary |
---|---|
public void setText(String text) Set the retrieved text. |