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 ../templates
34 * @build SSLCapabilities SSLExplorer
35 * @run main/othervm SSLSocketExplorerFailure SSLv2Hello,SSLv3
36 * @run main/othervm SSLSocketExplorerFailure SSLv3
37 * @run main/othervm SSLSocketExplorerFailure TLSv1
38 * @run main/othervm SSLSocketExplorerFailure TLSv1.1
39 * @run main/othervm SSLSocketExplorerFailure TLSv1.2
40 */
41
42 import java.io.*;
43 import java.nio.*;
44 import java.nio.channels.*;
45 import java.util.*;
46 import java.net.*;
47 import javax.net.ssl.*;
48
49 public class SSLSocketExplorerFailure {
50
51 /*
52 * =============================================================
53 * Set the various variables needed for the tests, then
|
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 ../templates
34 * @modules java.base/sun.misc
35 * @build SSLCapabilities SSLExplorer
36 * @run main/othervm SSLSocketExplorerFailure SSLv2Hello,SSLv3
37 * @run main/othervm SSLSocketExplorerFailure SSLv3
38 * @run main/othervm SSLSocketExplorerFailure TLSv1
39 * @run main/othervm SSLSocketExplorerFailure TLSv1.1
40 * @run main/othervm SSLSocketExplorerFailure TLSv1.2
41 */
42
43 import java.io.*;
44 import java.nio.*;
45 import java.nio.channels.*;
46 import java.util.*;
47 import java.net.*;
48 import javax.net.ssl.*;
49
50 public class SSLSocketExplorerFailure {
51
52 /*
53 * =============================================================
54 * Set the various variables needed for the tests, then
|