< prev index next >

test/sun/net/www/protocol/https/HttpsURLConnection/PostThruProxyWithAuth.java

Print this page
rev 17325 : 8181761: add explicit @build actions for jdk.test.lib classes in all :tier2 tests
Reviewed-by: duke


  22  */
  23 
  24 import java.io.*;
  25 import java.net.*;
  26 import java.security.KeyStore;
  27 import javax.net.*;
  28 import javax.net.ssl.*;
  29 
  30 import jdk.test.lib.process.OutputAnalyzer;
  31 import jdk.test.lib.process.ProcessTools;
  32 
  33 /*
  34  * @test
  35  * @bug 4423074
  36  * @modules java.base/sun.net.www
  37  * @summary This test case is written to test the https POST through a proxy
  38  *          with proxy authentication. It includes a simple server that serves
  39  *          http POST method requests in secure channel, and a client that
  40  *          makes https POST request through a proxy.
  41  * @library /test/lib






  42  * @compile OriginServer.java ProxyTunnelServer.java
  43  * @run main/othervm -Djdk.http.auth.tunneling.disabledSchemes= PostThruProxyWithAuth
  44  */
  45 public class PostThruProxyWithAuth {
  46 
  47     private static final String TEST_SRC = System.getProperty("test.src", ".");
  48     private static final int TIMEOUT = 30000;
  49 
  50     /*
  51      * Where do we find the keystores?
  52      */
  53     static String pathToStores = "../../../../../../javax/net/ssl/etc";
  54     static String keyStoreFile = "keystore";
  55     static String trustStoreFile = "truststore";
  56     static String passwd = "passphrase";
  57 
  58     volatile private static int serverPort = 0;
  59 
  60     /*
  61      * The TestServer implements a OriginServer that




  22  */
  23 
  24 import java.io.*;
  25 import java.net.*;
  26 import java.security.KeyStore;
  27 import javax.net.*;
  28 import javax.net.ssl.*;
  29 
  30 import jdk.test.lib.process.OutputAnalyzer;
  31 import jdk.test.lib.process.ProcessTools;
  32 
  33 /*
  34  * @test
  35  * @bug 4423074
  36  * @modules java.base/sun.net.www
  37  * @summary This test case is written to test the https POST through a proxy
  38  *          with proxy authentication. It includes a simple server that serves
  39  *          http POST method requests in secure channel, and a client that
  40  *          makes https POST request through a proxy.
  41  * @library /test/lib
  42  * @build jdk.test.lib.Utils
  43  *        jdk.test.lib.Asserts
  44  *        jdk.test.lib.JDKToolFinder
  45  *        jdk.test.lib.JDKToolLauncher
  46  *        jdk.test.lib.Platform
  47  *        jdk.test.lib.process.*
  48  * @compile OriginServer.java ProxyTunnelServer.java
  49  * @run main/othervm -Djdk.http.auth.tunneling.disabledSchemes= PostThruProxyWithAuth
  50  */
  51 public class PostThruProxyWithAuth {
  52 
  53     private static final String TEST_SRC = System.getProperty("test.src", ".");
  54     private static final int TIMEOUT = 30000;
  55 
  56     /*
  57      * Where do we find the keystores?
  58      */
  59     static String pathToStores = "../../../../../../javax/net/ssl/etc";
  60     static String keyStoreFile = "keystore";
  61     static String trustStoreFile = "truststore";
  62     static String passwd = "passphrase";
  63 
  64     volatile private static int serverPort = 0;
  65 
  66     /*
  67      * The TestServer implements a OriginServer that


< prev index next >