< prev index next >

test/jdk/javax/net/ssl/SSLEngine/NoAuthClientAuth.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 26,36 **** // system properties in samevm/agentvm mode. // /* * @test ! * @bug 4495742 * @summary Demonstrate SSLEngine switch from no client auth to client auth. * @run main/othervm NoAuthClientAuth SSLv3 * @run main/othervm NoAuthClientAuth TLSv1 * @run main/othervm NoAuthClientAuth TLSv1.1 * @run main/othervm NoAuthClientAuth TLSv1.2 --- 26,36 ---- // system properties in samevm/agentvm mode. // /* * @test ! * @bug 4495742 8190492 * @summary Demonstrate SSLEngine switch from no client auth to client auth. * @run main/othervm NoAuthClientAuth SSLv3 * @run main/othervm NoAuthClientAuth TLSv1 * @run main/othervm NoAuthClientAuth TLSv1.1 * @run main/othervm NoAuthClientAuth TLSv1.2
*** 302,311 **** --- 302,316 ---- */ serverEngine = sslc.createSSLEngine(); serverEngine.setUseClientMode(false); serverEngine.setNeedClientAuth(false); + // Enable all supported protocols on server side to test SSLv3 + if ("SSLv3".equals(tlsProtocol)) { + serverEngine.setEnabledProtocols(serverEngine.getSupportedProtocols()); + } + /* * Similar to above, but using client mode instead. */ clientEngine = sslc.createSSLEngine("client", 80); clientEngine.setUseClientMode(true);
< prev index next >