API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.security.auth.callback. ChoiceCallback View Source
Author(s)
Since
Version
1.18, 11/17/05
Serial
Hierarchy
 Object
      ChoiceCallback
Implements
 Callback
 Serializable
Subclasses
Description
public class ChoiceCallback
  Underlying security services instantiate and pass a ChoiceCallback to the handle method of a CallbackHandler to display a list of choices and to retrieve the selected choice(s).
See also:    CallbackHandler
Constructors
public ChoiceCallback (String prompt, String choices, int defaultChoice, boolean multipleSelectionsAllowed)
  Construct a ChoiceCallback with a prompt, a list of choices, a default choice, and a boolean specifying whether or not multiple selections from the list of choices are allowed.
Methods
Hide/Show inherited methods
public boolean allowMultipleSelections ()
  Get the boolean determining whether multiple selections from the choices list are allowed.
public String getChoices ()
  Get the list of choices.
public int getDefaultChoice ()
  Get the defaultChoice.
public String getPrompt ()
  Get the prompt.
public int getSelectedIndexes ()
  Get the selected choices.
public void setSelectedIndex (int selection)
  Set the selected choice.
public void setSelectedIndexes (int[] selections)
  Set the selected choices.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar