java.lang.Object
javax.security.auth.callback.TextInputCallback
- All Implemented Interfaces:
- Serializable,- Callback
- Direct Known Subclasses:
- RealmCallback
 Underlying security services instantiate and pass a
 TextInputCallback to the handle
 method of a CallbackHandler to retrieve generic text
 information.
- Since:
- 1.4
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionTextInputCallback(String prompt) Construct aTextInputCallbackwith a prompt.TextInputCallback(String prompt, String defaultText) Construct aTextInputCallbackwith a prompt and default input value.
- 
Method Summary
- 
Constructor Details- 
TextInputCallbackConstruct aTextInputCallbackwith a prompt.- Parameters:
- prompt- the prompt used to request the information.
- Throws:
- IllegalArgumentException- if- promptis null or if- prompthas a length of 0.
 
- 
TextInputCallbackConstruct aTextInputCallbackwith a prompt and default input value.- Parameters:
- prompt- the prompt used to request the information.
- defaultText- the text to be used as the default text displayed with the prompt.
- Throws:
- IllegalArgumentException- if- promptis null, if- prompthas a length of 0, if- defaultTextis null or if- defaultTexthas a length of 0.
 
 
- 
- 
Method Details- 
getPromptGet the prompt.- Returns:
- the prompt.
 
- 
getDefaultTextGet the default text.- Returns:
- the default text, or null if this TextInputCallbackwas not instantiated withdefaultText.
 
- 
setTextSet the retrieved text.- Parameters:
- text- the retrieved text, which may be null.
- See Also:
 
- 
getTextGet the retrieved text.- Returns:
- the retrieved text, which may be null.
- See Also:
 
 
-