< prev index next >

test/javax/net/ssl/ServerName/SSLEngineExplorerUnmatchedSNI.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 SSLEngineExplorerUnmatchedSNI www.example.com
  36  *                                                 www\.example\.org
  37  */
  38 
  39 import javax.net.ssl.*;
  40 import java.io.*;
  41 import java.nio.*;
  42 import java.net.*;
  43 import java.util.*;
  44 import java.nio.channels.*;
  45 
  46 public class SSLEngineExplorerUnmatchedSNI extends SSLEngineService {
  47 
  48     /*
  49      * =============================================================
  50      * Set the various variables needed for the tests, then
  51      * specify what tests to run on each side.
  52      */
  53 




  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 SSLEngineExplorerUnmatchedSNI www.example.com
  37  *                                                 www\.example\.org
  38  */
  39 
  40 import javax.net.ssl.*;
  41 import java.io.*;
  42 import java.nio.*;
  43 import java.net.*;
  44 import java.util.*;
  45 import java.nio.channels.*;
  46 
  47 public class SSLEngineExplorerUnmatchedSNI extends SSLEngineService {
  48 
  49     /*
  50      * =============================================================
  51      * Set the various variables needed for the tests, then
  52      * specify what tests to run on each side.
  53      */
  54 


< prev index next >