Adapt to API changes in Apache Geode 1.15.0.

This commit is contained in:
John Blum
2022-07-19 18:18:01 -07:00
parent c5e66c0ddf
commit 1740f16bf6

View File

@@ -113,6 +113,12 @@ public class Jetty11HttpService implements HttpService {
return object;
}
private static <T> String[] toArray(String commaDelimitedString) {
return StringUtils.isNotBlank(commaDelimitedString)
? commaDelimitedString.split(",")
: new String[0];
}
private static <T> Supplier<T> toSupplier(Supplier<T> lambda) {
return lambda;
}
@@ -321,7 +327,7 @@ public class Jetty11HttpService implements HttpService {
.filter(this::isSslCiphersConfigured)
.ifPresent(ciphers -> {
serverSslContextFactory.setExcludeCipherSuites();
serverSslContextFactory.setIncludeCipherSuites(SSLUtil.readArray(ciphers));
serverSslContextFactory.setIncludeCipherSuites(toArray(ciphers));
});
serverSslContextFactory.setNeedClientAuth(sslConfiguration.isRequireAuth());