< prev index next >

test/javax/net/ssl/ServerName/SSLEngineExplorer.java

Print this page




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


< prev index next >