jdk/test/javax/net/ssl/TLSv11/ExportableStreamCipher.java
changeset 30904 ec0224270f90
parent 23052 241885315119
child 40949 be7a612613ae
equal deleted inserted replaced
30903:0c7d705209c6 30904:ec0224270f90
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    22  * or visit www.oracle.com if you need additional information or have any
    22  * or visit www.oracle.com if you need additional information or have any
    23  * questions.
    23  * questions.
    24  */
    24  */
    25 
    25 
       
    26 //
       
    27 // SunJSSE does not support dynamic system properties, no way to re-use
       
    28 // system properties in samevm/agentvm mode.
       
    29 //
       
    30 
    26 /*
    31 /*
    27  * @test
    32  * @test
    28  * @bug 4873188
    33  * @bug 4873188
    29  * @summary Support TLS 1.1
    34  * @summary Support TLS 1.1
    30  * @run main/othervm ExportableStreamCipher
    35  * @run main/othervm ExportableStreamCipher
    31  *
       
    32  *     SunJSSE does not support dynamic system properties, no way to re-use
       
    33  *     system properties in samevm/agentvm mode.
       
    34  *
       
    35  * @author Xuelei Fan
    36  * @author Xuelei Fan
    36  */
    37  */
    37 
    38 
    38 import java.io.*;
    39 import java.io.*;
    39 import java.net.*;
    40 import java.net.*;
   107         boolean interrupted = false;
   108         boolean interrupted = false;
   108         try {
   109         try {
   109             sslIS.read();
   110             sslIS.read();
   110             sslOS.write('A');
   111             sslOS.write('A');
   111             sslOS.flush();
   112             sslOS.flush();
   112         } catch (SSLException ssle) {
   113         } catch (IOException ioe) {
   113             // get the expected exception
   114             // get the expected exception
   114             interrupted = true;
   115             interrupted = true;
   115         } finally {
   116         } finally {
   116             sslSocket.close();
   117             sslSocket.close();
   117         }
   118         }