May 2001
Intermediate to advanced
618 pages
20h 50m
English
Class javax.security.auth.callback.Confirmation-Callback
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.).
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);
}Read now
Unlock full access