< prev index next >

test/javax/net/ssl/DTLS/DTLSIncorrectAppDataTest.java

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


  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 8043758
  27  * @summary Testing DTLS incorrect app data packages unwrapping.
  28  * @key randomness
  29  * @library /sun/security/krb5/auto /test/lib /javax/net/ssl/TLSCommon
  30  * @modules java.security.jgss
  31  *          jdk.security.auth
  32  *          java.security.jgss/sun.security.krb5:+open
  33  *          java.security.jgss/sun.security.krb5.internal:+open
  34  *          java.security.jgss/sun.security.krb5.internal.ccache
  35  *          java.security.jgss/sun.security.krb5.internal.crypto
  36  *          java.security.jgss/sun.security.krb5.internal.ktab
  37  *          java.base/sun.security.util

  38  * @run main/othervm -Dtest.security.protocol=DTLS
  39  *      -Dtest.mode=norm DTLSIncorrectAppDataTest
  40  * @run main/othervm -Dtest.security.protocol=DTLS
  41  *      -Dtest.mode=norm_sni DTLSIncorrectAppDataTest
  42  * @run main/othervm -Dtest.security.protocol=DTLS
  43  *      -Dtest.mode=krb DTLSIncorrectAppDataTest
  44  */
  45 
  46 import java.nio.ByteBuffer;
  47 import javax.net.ssl.SSLContext;
  48 import javax.net.ssl.SSLEngine;
  49 import javax.net.ssl.SSLEngineResult;
  50 import javax.net.ssl.SSLException;
  51 import java.util.Random;
  52 import jdk.test.lib.RandomFactory;
  53 
  54 /**
  55  * Testing DTLS incorrect app data packages unwrapping. Incorrect application
  56  * data packages should be ignored by DTLS SSLEngine.
  57  */




  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 8043758
  27  * @summary Testing DTLS incorrect app data packages unwrapping.
  28  * @key randomness
  29  * @library /sun/security/krb5/auto /test/lib /javax/net/ssl/TLSCommon
  30  * @modules java.security.jgss
  31  *          jdk.security.auth
  32  *          java.security.jgss/sun.security.krb5:+open
  33  *          java.security.jgss/sun.security.krb5.internal:+open
  34  *          java.security.jgss/sun.security.krb5.internal.ccache
  35  *          java.security.jgss/sun.security.krb5.internal.crypto
  36  *          java.security.jgss/sun.security.krb5.internal.ktab
  37  *          java.base/sun.security.util
  38  * @build jdk.test.lib.RandomFactory
  39  * @run main/othervm -Dtest.security.protocol=DTLS
  40  *      -Dtest.mode=norm DTLSIncorrectAppDataTest
  41  * @run main/othervm -Dtest.security.protocol=DTLS
  42  *      -Dtest.mode=norm_sni DTLSIncorrectAppDataTest
  43  * @run main/othervm -Dtest.security.protocol=DTLS
  44  *      -Dtest.mode=krb DTLSIncorrectAppDataTest
  45  */
  46 
  47 import java.nio.ByteBuffer;
  48 import javax.net.ssl.SSLContext;
  49 import javax.net.ssl.SSLEngine;
  50 import javax.net.ssl.SSLEngineResult;
  51 import javax.net.ssl.SSLException;
  52 import java.util.Random;
  53 import jdk.test.lib.RandomFactory;
  54 
  55 /**
  56  * Testing DTLS incorrect app data packages unwrapping. Incorrect application
  57  * data packages should be ignored by DTLS SSLEngine.
  58  */


< prev index next >