Movatterモバイル変換


[0]ホーム

URL:


         


Class TextInputCallback

java.lang.Object  |  +--javax.security.auth.callback.TextInputCallback
All Implemented Interfaces:
Callback

public classTextInputCallback
extends java.lang.Object
implementsCallback

Underlying security services instantiate and pass aTextInputCallback to theinvokeCallback method of aCallbackHandler to retrieve generic text information.

See Also:
CallbackHandler

TextInputCallback(java.lang.String prompt)
          Construct aTextInputCallback with a prompt.
TextInputCallback(java.lang.String prompt, java.lang.String defaultText)
          Construct aTextInputCallback with a prompt and default input value.
 
getDefaultText()
          Get the default text.
getPrompt()
          Get the prompt.
getText()
          Get the retrieved text.
setText(java.lang.String text)
          Set the retrieved text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

TextInputCallback

publicTextInputCallback(java.lang.String prompt)
Construct aTextInputCallback with a prompt.

Parameters:
prompt - the prompt used to request the information.
Throws:
java.lang.IllegalArgumentException - ifprompt is nullor ifprompt has a length of 0.

TextInputCallback

publicTextInputCallback(java.lang.String prompt,                         java.lang.String defaultText)
Construct aTextInputCallback with 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 displayedwith the prompt.
Throws:
java.lang.IllegalArgumentException - ifprompt is null,ifprompt has a length of 0,ifdefaultText is nullor ifdefaultText has a length of 0.

getPrompt

public java.lang.StringgetPrompt()
Get the prompt.

Returns:
the prompt.

getDefaultText

public java.lang.StringgetDefaultText()
Get the default text.

Returns:
the default text, or null if thisTextInputCallbackwas not instantiated withdefaultText.

setText

public voidsetText(java.lang.String text)
Set the retrieved text.

Parameters:
text - the retrieved text, which may be null.

getText

public java.lang.StringgetText()
Get the retrieved text.

Returns:
the retrieved text, which may be null.

         


[8]ページ先頭

©2009-2025 Movatter.jp