test/jdk/sun/security/ssl/SSLSessionImpl/ResumeChecksServerStateless.java
author ascarpino
Tue, 11 Jun 2019 16:31:37 -0700
changeset 55336 c2398053ee90
permissions -rw-r--r--
8211018: Session Resumption without Server-Side State Reviewed-by: xuelei, jnimeh, jjiang
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55336
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     1
/*
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     4
 *
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     7
 * published by the Free Software Foundation.
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     8
 *
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    13
 * accompanied this code).
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    14
 *
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    18
 *
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    21
 * questions.
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    22
 */
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    23
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    24
/*
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    25
 * @test
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    26
 * @bug 8211018
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    27
 * @summary ensure that server only resumes a session if certain properties
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    28
 *    of the session are compatible with the new connection
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    29
 * @run main/othervm -Djdk.tls.client.protocols=TLSv1.3 ResumeChecksServer BASIC
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    30
 * @run main/othervm -Djdk.tls.client.protocols=TLSv1.3 ResumeChecksServer CLIENT_AUTH
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    31
 * @run main/othervm ResumeChecksServer VERSION_2_TO_3
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    32
 * @run main/othervm ResumeChecksServer VERSION_3_TO_2
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    33
 * @run main/othervm -Djdk.tls.client.protocols=TLSv1.3 ResumeChecksServer CIPHER_SUITE
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    34
 * @run main/othervm -Djdk.tls.client.protocols=TLSv1.3 ResumeChecksServer SIGNATURE_SCHEME
c2398053ee90 8211018: Session Resumption without Server-Side State
ascarpino
parents:
diff changeset
    35
 */