TextInputCallbackpublic class TextInputCallback extends Object implements Callback, Serializable Underlying security services instantiate and pass a
TextInputCallback to the handle
method of a CallbackHandler to retrieve generic text
information. |
Fields Summary |
---|
private static final long | serialVersionUID | private String | prompt | private String | defaultText | private String | inputText |
Constructors Summary |
---|
public TextInputCallback(String prompt)Construct a TextInputCallback with a prompt.
if (prompt == null || prompt.length() == 0)
throw new IllegalArgumentException();
this.prompt = prompt;
| public TextInputCallback(String prompt, String defaultText)Construct a TextInputCallback with a prompt
and default input value.
if (prompt == null || prompt.length() == 0 ||
defaultText == null || defaultText.length() == 0)
throw new IllegalArgumentException();
this.prompt = prompt;
this.defaultText = defaultText;
|
Methods Summary |
---|
public java.lang.String | getDefaultText()Get the default text.
return defaultText;
| public java.lang.String | getPrompt()Get the prompt.
return prompt;
| public java.lang.String | getText()Get the retrieved text.
return inputText;
| public void | setText(java.lang.String text)Set the retrieved text.
this.inputText = text;
|
|