< prev index next >

test/javax/net/ssl/SSLEngine/LargeBufs.java

Print this page




  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  * @test
  26  * @bug 4495742
  27  * @summary Add non-blocking SSL/TLS functionality, usable with any
  28  *      I/O abstraction
  29  *
  30  * This is to test larger buffer arrays, and make sure the maximum
  31  * is being passed.
  32  *
  33  * @run main/othervm -Djsse.enableCBCProtection=false LargeBufs
  34  *
  35  * @author Brad R. Wetmore

  36  */
  37 
  38 import javax.net.ssl.*;
  39 import javax.net.ssl.SSLEngineResult.*;
  40 import java.io.*;
  41 import java.security.*;
  42 import java.nio.*;
  43 import java.util.Random;
  44 
  45 public class LargeBufs {
  46 
  47     private static boolean debug = false;
  48 
  49     private SSLContext sslc;
  50     static private SSLEngine ssle1;     // client
  51     static private SSLEngine ssle2;     // server
  52 
  53     private static String pathToStores = "../etc";
  54     private static String keyStoreFile = "keystore";
  55     private static String trustStoreFile = "truststore";




  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  * @test
  26  * @bug 4495742
  27  * @summary Add non-blocking SSL/TLS functionality, usable with any
  28  *      I/O abstraction
  29  *
  30  * This is to test larger buffer arrays, and make sure the maximum
  31  * is being passed.
  32  *
  33  * @run main/othervm -Djsse.enableCBCProtection=false LargeBufs
  34  *
  35  * @author Brad R. Wetmore
  36  * @key randomness
  37  */
  38 
  39 import javax.net.ssl.*;
  40 import javax.net.ssl.SSLEngineResult.*;
  41 import java.io.*;
  42 import java.security.*;
  43 import java.nio.*;
  44 import java.util.Random;
  45 
  46 public class LargeBufs {
  47 
  48     private static boolean debug = false;
  49 
  50     private SSLContext sslc;
  51     static private SSLEngine ssle1;     // client
  52     static private SSLEngine ssle2;     // server
  53 
  54     private static String pathToStores = "../etc";
  55     private static String keyStoreFile = "keystore";
  56     private static String trustStoreFile = "truststore";


< prev index next >