public class TextInputCallback extends Object implements Callback, Serializable
基本的安全服务,通过TextInputCallback
实例化的CallbackHandler
的handle
方法检索通用文本信息。
CallbackHandler
,
Serialized Form
Constructor and Description |
---|
TextInputCallback(String prompt)
构建一个提示
TextInputCallback 。
|
TextInputCallback(String prompt, String defaultText)
构造一个提示和默认输入值的
TextInputCallback 。
|
public TextInputCallback(String prompt)
TextInputCallback
。
prompt
用于请求的信息提示。
IllegalArgumentException
-如果
prompt
长度为0
prompt
无效或。
public TextInputCallback(String prompt, String defaultText)
TextInputCallback
。
prompt
用于请求的信息提示。
defaultText
-用于显示提示的默认文本的文本。
IllegalArgumentException
-如果
prompt
是无效的,如果
prompt
长度为0,如果
defaultText
长度为0
defaultText
无效或。
public String getPrompt()
public String getDefaultText()
TextInputCallback
没有实例化
defaultText
。
public String getText()
setText(java.lang.String)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.