Name
Class javax.security.auth.callback.ChoiceCallback
Synopsis
Login modules that want the user to make a particular
choice
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
choice(s) the user made.
Class Definition
public class javax.security.auth.callback.ChoiceCallback extends java.lang.Object implements javax.security.auth.callback.Callback { // Constructors public ChoiceCallback(String, String[], int, boolean); // Instance Methods public boolean allowMultipleSelections( ); public String[] getChoices( ); public int getDefaultChoice( ); public String getPrompt( ); public int[] getSelectedIndexes( ); public void setSelectedIndex(int); public void setSelectedIndexes(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.