test/jdk/sun/security/ssl/SSLContextImpl/IllegalProtocolProperty.java
changeset 59302 24e8cdead5f3
parent 47216 71c04702a3d5
equal deleted inserted replaced
59301:d67bb40f422c 59302:24e8cdead5f3
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 // SunJSSE does not support dynamic system properties, no way to re-use
    24 // SunJSSE does not support dynamic system properties, no way to re-use
    25 // system properties in samevm/agentvm mode.
    25 // system properties in samevm/agentvm mode.
    26 
    26 
    27 /*
    27 /*
    28  * @test
    28  * @test
    29  * @bug 7093640
    29  * @bug 7093640 8234725
    30  * @summary Enable TLS 1.1 and TLS 1.2 by default in client side of SunJSSE
    30  * @summary Enable TLS 1.1 and TLS 1.2 by default in client side of SunJSSE
    31  * @run main/othervm -Djdk.tls.client.protocols="XSLv3,TLSv1"
    31  * @run main/othervm -Djdk.tls.client.protocols="XSLv3,TLSv1"
    32  *      IllegalProtocolProperty
    32  *      IllegalProtocolProperty
    33  */
    33  */
    34 
    34 
    41         TLS_CV_02("TLS", "TLSv1", "TLSv1.2", true),
    41         TLS_CV_02("TLS", "TLSv1", "TLSv1.2", true),
    42         TLS_CV_03("SSLv3", "TLSv1", "TLSv1.2", false),
    42         TLS_CV_03("SSLv3", "TLSv1", "TLSv1.2", false),
    43         TLS_CV_04("TLSv1", "TLSv1", "TLSv1.2", false),
    43         TLS_CV_04("TLSv1", "TLSv1", "TLSv1.2", false),
    44         TLS_CV_05("TLSv1.1", "TLSv1.1", "TLSv1.2", false),
    44         TLS_CV_05("TLSv1.1", "TLSv1.1", "TLSv1.2", false),
    45         TLS_CV_06("TLSv1.2", "TLSv1.2", "TLSv1.2", false),
    45         TLS_CV_06("TLSv1.2", "TLSv1.2", "TLSv1.2", false),
    46         TLS_CV_07("Default", "TLSv1", "TLSv1.2", true);
    46         TLS_CV_07("Default", "TLSv1", "TLSv1.2", true),
       
    47         TLS_CV_08("TLSv1.3", "TLSv1.3", "TLSv1.3", false);
    47 
    48 
    48         final String contextVersion;
    49         final String contextVersion;
    49         final String defaultProtocolVersion;
    50         final String defaultProtocolVersion;
    50         final String supportedProtocolVersion;
    51         final String supportedProtocolVersion;
    51         final boolean impacted;
    52         final boolean impacted;