< prev index next >

test/javax/net/ssl/ServerName/SSLSocketExplorerMatchedSNI.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 ../templates

  34  * @build SSLCapabilities SSLExplorer
  35  * @run main/othervm SSLSocketExplorerMatchedSNI www.example.com
  36  *     www\.example\.com
  37  * @run main/othervm SSLSocketExplorerMatchedSNI www.example.com
  38  *     www\.example\.(com|org)
  39  * @run main/othervm SSLSocketExplorerMatchedSNI example.com
  40  *     (.*\.)*example\.(com|org)
  41  * @run main/othervm SSLSocketExplorerMatchedSNI www.example.com
  42  *     (.*\.)*example\.(com|org)
  43  * @run main/othervm SSLSocketExplorerMatchedSNI www.us.example.com
  44  *     (.*\.)*example\.(com|org)
  45  */
  46 
  47 import java.io.*;
  48 import java.nio.*;
  49 import java.nio.channels.*;
  50 import java.util.*;
  51 import java.net.*;
  52 import javax.net.ssl.*;
  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 ../templates
  34  * @modules java.base/sun.misc
  35  * @build SSLCapabilities SSLExplorer
  36  * @run main/othervm SSLSocketExplorerMatchedSNI www.example.com
  37  *     www\.example\.com
  38  * @run main/othervm SSLSocketExplorerMatchedSNI www.example.com
  39  *     www\.example\.(com|org)
  40  * @run main/othervm SSLSocketExplorerMatchedSNI example.com
  41  *     (.*\.)*example\.(com|org)
  42  * @run main/othervm SSLSocketExplorerMatchedSNI www.example.com
  43  *     (.*\.)*example\.(com|org)
  44  * @run main/othervm SSLSocketExplorerMatchedSNI www.us.example.com
  45  *     (.*\.)*example\.(com|org)
  46  */
  47 
  48 import java.io.*;
  49 import java.nio.*;
  50 import java.nio.channels.*;
  51 import java.util.*;
  52 import java.net.*;
  53 import javax.net.ssl.*;
  54 


< prev index next >