test/jdk/sun/security/ssl/SSLContextImpl/SSLContextVersion.java
changeset 59302 24e8cdead5f3
parent 47216 71c04702a3d5
equal deleted inserted replaced
59301:d67bb40f422c 59302:24e8cdead5f3
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 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 6976117
    29  * @bug 6976117 8234725
    30  * @summary SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets
    30  * @summary SSLContext.getInstance("TLSv1.1") returns SSLEngines/SSLSockets
    31  *          without TLSv1.1 enabled
    31  *          without TLSv1.1 enabled
    32  * @run main/othervm SSLContextVersion
    32  * @run main/othervm SSLContextVersion
    33  */
    33  */
    34 
    34 
    40         TLS_CV_02("TLS", "TLSv1.2", "TLSv1.2"),
    40         TLS_CV_02("TLS", "TLSv1.2", "TLSv1.2"),
    41         TLS_CV_03("SSLv3", "TLSv1", "TLSv1.2"),
    41         TLS_CV_03("SSLv3", "TLSv1", "TLSv1.2"),
    42         TLS_CV_04("TLSv1", "TLSv1", "TLSv1.2"),
    42         TLS_CV_04("TLSv1", "TLSv1", "TLSv1.2"),
    43         TLS_CV_05("TLSv1.1", "TLSv1.1", "TLSv1.2"),
    43         TLS_CV_05("TLSv1.1", "TLSv1.1", "TLSv1.2"),
    44         TLS_CV_06("TLSv1.2", "TLSv1.2", "TLSv1.2"),
    44         TLS_CV_06("TLSv1.2", "TLSv1.2", "TLSv1.2"),
    45         TLS_CV_07("Default", "TLSv1.2", "TLSv1.2");
    45         TLS_CV_07("Default", "TLSv1.2", "TLSv1.2"),
       
    46         TLS_CV_08("Default", "TLSv1.3", "TLSv1.3"),
       
    47         TLS_CV_09("TLS", "TLSv1.3", "TLSv1.3"),
       
    48         TLS_CV_10("TLSv1.3", "TLSv1.3", "TLSv1.3");
    46 
    49 
    47         final String contextVersion;
    50         final String contextVersion;
    48         final String defaultProtocolVersion;
    51         final String defaultProtocolVersion;
    49         final String supportedProtocolVersion;
    52         final String supportedProtocolVersion;
    50 
    53