Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/security/auth/callback/ChoiceCallback.java
/* * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.security.auth.callback; /** * <p> Underlying security services instantiate and pass a * {@code ChoiceCallback} to the {@code handle} * method of a {@code CallbackHandler} to display a list of choices * and to retrieve the selected choice(s). * * @since 1.4 * @see javax.security.auth.callback.CallbackHandler */ public class ChoiceCallback implements Callback, java.io.Serializable { private static final long serialVersionUID = -3975664071579892167L; /** * @serial * @since 1.4 */ private String prompt; /** * @serial the list of choices * @since 1.4 */ private String[] choices; /** * @serial the choice to be used as the default choice * @since 1.4 */ private int defaultChoice; /** * @serial whether multiple selections are allowed from the list of * choices * @since 1.4 */ private boolean multipleSelectionsAllowed; /** * @serial the selected choices, represented as indexes into the * {@code choices} list. * @since 1.4 */ private int[] selections; /** * Construct a {@code ChoiceCallback} with a prompt, * a list of choices, a default choice, and a boolean specifying * whether or not multiple selections from the list of choices are allowed. * * * @param prompt the prompt used to describe the list of choices. * * @param choices the list of choices. * * @param defaultChoice the choice to be used as the default choice * when the list of choices are displayed. This value * is represented as an index into the * {@code choices} array. * * @param multipleSelectionsAllowed boolean specifying whether or * not multiple selections can be made from the * list of choices. * * @exception IllegalArgumentException if {@code prompt} is null, * if {@code prompt} has a length of 0, * if {@code choices} is null, * if {@code choices} has a length of 0, * if any element from {@code choices} is null, * if any element from {@code choices} * has a length of 0 or if {@code defaultChoice} * does not fall within the array boundaries of * {@code choices}. */ public ChoiceCallback(String prompt, String[] choices, int defaultChoice, boolean multipleSelectionsAllowed) { if (prompt == null || prompt.length() == 0 || choices == null || choices.length == 0 || defaultChoice < 0 || defaultChoice >= choices.length) throw new IllegalArgumentException(); for (int i = 0; i < choices.length; i++) { if (choices[i] == null || choices[i].length() == 0) throw new IllegalArgumentException(); } this.prompt = prompt; this.choices = choices; this.defaultChoice = defaultChoice; this.multipleSelectionsAllowed = multipleSelectionsAllowed; } /** * Get the prompt. * * @return the prompt. */ public String getPrompt() { return prompt; } /** * Get the list of choices. * * @return the list of choices. */ public String[] getChoices() { return choices; } /** * Get the defaultChoice. * * @return the defaultChoice, represented as an index into * the {@code choices} list. */ public int getDefaultChoice() { return defaultChoice; } /** * Get the boolean determining whether multiple selections from * the {@code choices} list are allowed. * * @return whether multiple selections are allowed. */ public boolean allowMultipleSelections() { return multipleSelectionsAllowed; } /** * Set the selected choice. * * @param selection the selection represented as an index into the * {@code choices} list. * * @see #getSelectedIndexes */ public void setSelectedIndex(int selection) { this.selections = new int[1]; this.selections[0] = selection; } /** * Set the selected choices. * * @param selections the selections represented as indexes into the * {@code choices} list. * * @exception UnsupportedOperationException if multiple selections are * not allowed, as determined by * {@code allowMultipleSelections}. * * @see #getSelectedIndexes */ public void setSelectedIndexes(int[] selections) { if (!multipleSelectionsAllowed) throw new UnsupportedOperationException(); this.selections = selections; } /** * Get the selected choices. * * @return the selected choices, represented as indexes into the * {@code choices} list. * * @see #setSelectedIndexes */ public int[] getSelectedIndexes() { return selections; } }
⏎ javax/security/auth/callback/ChoiceCallback.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 205299👍, 0💬
Popular Posts:
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...
What Is mail.jar of JavaMail 1.4.2? I got the JAR file from javamail-1.4.2.zip. mail.jar in javamail...
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
What Is ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is the JAR files of ojdbc.jar, ...