jdk/test/javax/net/ssl/ServerName/SSLEngineExplorer.java
changeset 28555 c7bf34f7b215
parent 23052 241885315119
child 30820 0d4717a011d3
equal deleted inserted replaced
28554:5eda7a0f3ea3 28555:c7bf34f7b215
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    42 import javax.net.ssl.*;
    42 import javax.net.ssl.*;
    43 import java.nio.*;
    43 import java.nio.*;
    44 import java.net.*;
    44 import java.net.*;
    45 import java.util.*;
    45 import java.util.*;
    46 import java.nio.channels.*;
    46 import java.nio.channels.*;
       
    47 import java.security.Security;
    47 
    48 
    48 public class SSLEngineExplorer extends SSLEngineService {
    49 public class SSLEngineExplorer extends SSLEngineService {
    49 
    50 
    50     /*
    51     /*
    51      * =============================================================
    52      * =============================================================
   229 
   230 
   230     // use any free port by default
   231     // use any free port by default
   231     volatile int serverPort = 0;
   232     volatile int serverPort = 0;
   232 
   233 
   233     public static void main(String args[]) throws Exception {
   234     public static void main(String args[]) throws Exception {
       
   235         // reset the security property to make sure that the algorithms
       
   236         // and keys used in this test are not disabled.
       
   237         Security.setProperty("jdk.tls.disabledAlgorithms", "");
       
   238 
   234         if (debug)
   239         if (debug)
   235             System.setProperty("javax.net.debug", "all");
   240             System.setProperty("javax.net.debug", "all");
   236 
   241 
   237         /*
   242         /*
   238          * Get the customized arguments.
   243          * Get the customized arguments.