QPID-8259: [Broker-J] Fix tests failing on IBM JDK due to jetty default cipher suites...
authorAlex Rudyy <orudyy@apache.org>
Wed, 19 Dec 2018 15:01:33 +0000 (15:01 +0000)
committerAlex Rudyy <orudyy@apache.org>
Wed, 19 Dec 2018 15:01:33 +0000 (15:01 +0000)
broker-core/src/test/java/org/apache/qpid/server/security/auth/manager/oauth2/OAuth2MockEndpointHolder.java

index 2706fe9..4c4aa0a 100644 (file)
@@ -84,6 +84,15 @@ class OAuth2MockEndpointHolder
                                               };
         sslContextFactory.setKeyStorePassword(KEYSTORE_PASSWORD);
         sslContextFactory.setKeyStoreResource(Resource.newClassPathResource(KEYSTORE_RESOURCE));
+
+        // override default jetty excludes as valid IBM JDK are excluded
+        // causing SSL handshake failure (due to default exclude '^SSL_.*$')
+        sslContextFactory.setExcludeCipherSuites("^.*_(MD5|SHA|SHA1)$",
+                                                 "^TLS_RSA_.*$",
+                                                 "^SSL_RSA_.*$",
+                                                 "^.*_NULL_.*$",
+                                                 "^.*_anon_.*$");
+
         _connector = new ServerConnector(_server, sslContextFactory);
         _connector.setPort(0);
         _connector.setReuseAddress(true);