Name
Class javax.security.auth.callback.Confirmation-Callback
Synopsis
Login modules that want the user to
acknowledge a particular situation will
create an instance of this object and pass it to the callback
handler. Your callback handler should call the
setSelectedIndex( )
method to indicate which
confirmation the user selected (yes/no/ok, etc.).
Class Definition
public class javax.security.auth.callback.ConfirmationCallback extends java.lang.Object implements javax.security.auth.callback.Callback { // Constants public static final int CANCEL; public static final int ERROR; public static final int INFORMATION; public static final int NO; public static final int OK; public static final int OK_CANCEL_OPTION; public static final int UNSPECIFIED_OPTION; public static final int WARNING; public static final int YES; public static final int YES_NO_CANCEL_OPTION; public static final int YES_NO_OPTION; // Constructors public ConfirmationCallback(int, String[], int); public ConfirmationCallback(String, int, int, int); public ConfirmationCallback(String, int, String[], int); public ConfirmationCallback(int, int, int); // Instance Methods public int getDefaultOption( ); public int getMessageType( ); public int getOptionType( ); public String[] getOptions( ); public String getPrompt( ); public int getSelectedIndex( ); public void setSelectedIndex(int); }
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.