14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 //
25 // SunJSSE does not support dynamic system properties, no way to re-use
26 // system properties in samevm/agentvm mode.
27 //
28
29 /*
30 * @test
31 * @bug 7068321
32 * @summary Support TLS Server Name Indication (SNI) Extension in JSSE Server
33 * @library ../SSLEngine ../templates
34 * @build SSLEngineService SSLCapabilities SSLExplorer
35 * @run main/othervm SSLEngineExplorerWithSrv
36 */
37
38 import javax.net.ssl.*;
39 import java.nio.*;
40 import java.net.*;
41 import java.util.*;
42 import java.nio.channels.*;
43
44 public class SSLEngineExplorerWithSrv extends SSLEngineService {
45
46 /*
47 * =============================================================
48 * Set the various variables needed for the tests, then
49 * specify what tests to run on each side.
50 */
51
52 /*
53 * Should we run the client or server in a separate thread?
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 //
25 // SunJSSE does not support dynamic system properties, no way to re-use
26 // system properties in samevm/agentvm mode.
27 //
28
29 /*
30 * @test
31 * @bug 7068321
32 * @summary Support TLS Server Name Indication (SNI) Extension in JSSE Server
33 * @library ../SSLEngine ../templates
34 * @modules java.base/sun.misc
35 * @build SSLEngineService SSLCapabilities SSLExplorer
36 * @run main/othervm SSLEngineExplorerWithSrv
37 */
38
39 import javax.net.ssl.*;
40 import java.nio.*;
41 import java.net.*;
42 import java.util.*;
43 import java.nio.channels.*;
44
45 public class SSLEngineExplorerWithSrv extends SSLEngineService {
46
47 /*
48 * =============================================================
49 * Set the various variables needed for the tests, then
50 * specify what tests to run on each side.
51 */
52
53 /*
54 * Should we run the client or server in a separate thread?
|