API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.security.auth.callback. ConfirmationCallback View Source
Author(s)
Since
Version
1.17, 11/17/05
Serial
Hierarchy
 Object
      ConfirmationCallback
Implements
 Callback
 Serializable
Subclasses
Description
public class ConfirmationCallback
  Underlying security services instantiate and pass a ConfirmationCallback to the handle method of a CallbackHandler to ask for YES/NO, OK/CANCEL, YES/NO/CANCEL or other similar confirmations.
See also:    CallbackHandler
Constructors
public ConfirmationCallback (int messageType, int optionType, int defaultOption)
  Construct a ConfirmationCallback with a message type, an option type and a default option.
public ConfirmationCallback (int messageType, String options, int defaultOption)
  Construct a ConfirmationCallback with a message type, a list of options and a default option.
public ConfirmationCallback (String prompt, int messageType, int optionType, int defaultOption)
  Construct a ConfirmationCallback with a prompt, message type, an option type and a default option.
public ConfirmationCallback (String prompt, int messageType, String options, int defaultOption)
  Construct a ConfirmationCallback with a prompt, message type, a list of options and a default option.
Methods
Hide/Show inherited methods
public int getDefaultOption ()
  Get the default option.
public int getMessageType ()
  Get the message type.
public String getOptions ()
  Get the confirmation options.
public int getOptionType ()
  Get the option type.
public String getPrompt ()
  Get the prompt.
public int getSelectedIndex ()
  Get the selected confirmation option.
public void setSelectedIndex (int selection)
  Set the selected confirmation option.
Fields
Hide/Show inherited fields
publicfinalstatic int CANCEL = "2"
  CANCEL option.
publicfinalstatic int ERROR = "2"
ERROR message type.
publicfinalstatic int INFORMATION = "0"
INFORMATION message type.
publicfinalstatic int NO = "1"
  NO option.
publicfinalstatic int OK = "3"
  OK option.
publicfinalstatic int OK_CANCEL_OPTION = "2"
  OK/CANCEL confirmation confirmation option.
publicfinalstatic int UNSPECIFIED_OPTION = "-1"
  Unspecified option type.
publicfinalstatic int WARNING = "1"
WARNING message type.
publicfinalstatic int YES = "0"
  YES option.
publicfinalstatic int YES_NO_CANCEL_OPTION = "1"
  YES/NO/CANCEL confirmation confirmation option.
publicfinalstatic int YES_NO_OPTION = "0"
  YES/NO confirmation option.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar