test/jdk/javax/net/ssl/TLSv12/TLSEnginesClosureTest.java
author jjg
Fri, 09 Aug 2019 15:22:43 -0700
changeset 57706 7ac414640ad5
parent 53273 bbc79e0ec9ee
permissions -rw-r--r--
8229386: Typo "lables" in doc comment Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
51407
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     1
/*
53273
bbc79e0ec9ee 8216265: [testbug] Introduce Platform.sharedLibraryPathVariableName() and adapt all tests.
goetz
parents: 51407
diff changeset
     2
 * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
51407
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     4
 *
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     7
 * published by the Free Software Foundation.
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     8
 *
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    13
 * accompanied this code).
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    14
 *
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    18
 *
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    21
 * questions.
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    22
 */
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    23
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    24
/*
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    25
 * @test
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    26
 * @bug 8207009
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    27
 * @summary Testing TLS engines closing using each of the supported
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    28
 *          cipher suites.
53273
bbc79e0ec9ee 8216265: [testbug] Introduce Platform.sharedLibraryPathVariableName() and adapt all tests.
goetz
parents: 51407
diff changeset
    29
 * @library /sun/security/krb5/auto /javax/net/ssl/TLSCommon /test/lib
51407
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    30
 * @modules java.security.jgss
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    31
 *          jdk.security.auth
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    32
 *          java.security.jgss/sun.security.jgss.krb5
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    33
 *          java.security.jgss/sun.security.krb5:+open
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    34
 *          java.security.jgss/sun.security.krb5.internal:+open
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    35
 *          java.security.jgss/sun.security.krb5.internal.ccache
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    36
 *          java.security.jgss/sun.security.krb5.internal.crypto
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    37
 *          java.security.jgss/sun.security.krb5.internal.ktab
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    38
 *          java.base/sun.security.util
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    39
 * @run main/othervm -Dtest.security.protocol=TLSv1.2
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    40
 *     -Dtest.mode=norm TLSEnginesClosureTest
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    41
 * @run main/othervm -Dtest.security.protocol=TLSv1.2
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    42
 *     -Dtest.mode=norm_sni TLSEnginesClosureTest
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    43
 * @run main/othervm -Dtest.security.protocol=TLSv1.2
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    44
 *     -Dtest.mode=krb TLSEnginesClosureTest
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    45
 */
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    46
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    47
/**
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    48
 * Testing TLS engines closing using each of the supported cipher suites.
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    49
 */
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    50
public class TLSEnginesClosureTest {
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    51
    public static void main(String[] args) {
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    52
        EnginesClosureTest.main(args);
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    53
    }
910f7b56592f 8207009: TLS 1.3 half-close and synchronization issues
xuelei
parents:
diff changeset
    54
}