< prev index next >

src/java.base/share/classes/javax/security/auth/callback/ChoiceCallback.java

Print this page




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.security.auth.callback;
  27 
  28 /**
  29  * <p> Underlying security services instantiate and pass a
  30  * {@code ChoiceCallback} to the {@code handle}
  31  * method of a {@code CallbackHandler} to display a list of choices
  32  * and to retrieve the selected choice(s).
  33  *

  34  * @see javax.security.auth.callback.CallbackHandler
  35  */
  36 public class ChoiceCallback implements Callback, java.io.Serializable {
  37 
  38     private static final long serialVersionUID = -3975664071579892167L;
  39 
  40     /**
  41      * @serial
  42      * @since 1.4
  43      */
  44     private String prompt;
  45     /**
  46      * @serial the list of choices
  47      * @since 1.4
  48      */
  49     private String[] choices;
  50     /**
  51      * @serial the choice to be used as the default choice
  52      * @since 1.4
  53      */




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.security.auth.callback;
  27 
  28 /**
  29  * <p> Underlying security services instantiate and pass a
  30  * {@code ChoiceCallback} to the {@code handle}
  31  * method of a {@code CallbackHandler} to display a list of choices
  32  * and to retrieve the selected choice(s).
  33  *
  34  * @since 1.4
  35  * @see javax.security.auth.callback.CallbackHandler
  36  */
  37 public class ChoiceCallback implements Callback, java.io.Serializable {
  38 
  39     private static final long serialVersionUID = -3975664071579892167L;
  40 
  41     /**
  42      * @serial
  43      * @since 1.4
  44      */
  45     private String prompt;
  46     /**
  47      * @serial the list of choices
  48      * @since 1.4
  49      */
  50     private String[] choices;
  51     /**
  52      * @serial the choice to be used as the default choice
  53      * @since 1.4
  54      */


< prev index next >