Skip to content

Commit

Permalink
[branch-2.10] Fix JDK compatibility issues. (#17904)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattisonchao authored Sep 30, 2022
1 parent 388938e commit a995972
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void doInitConf() throws Exception {
superUserRoles.add("superUser");
conf.setSuperUserRoles(superUserRoles);

conf.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
conf.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
Properties properties = new Properties();
properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
conf.setProperties(properties);
Expand Down Expand Up @@ -118,7 +118,7 @@ protected void setup() throws Exception {
proxyConfig.setBrokerClientAuthenticationPlugin(AuthenticationToken.class.getName());
proxyConfig.setBrokerClientAuthenticationParameters(
AuthTokenUtils.createToken(SECRET_KEY, "Proxy", Optional.empty()));
proxyConfig.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
proxyConfig.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
Properties properties = new Properties();
properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
proxyConfig.setProperties(properties);
Expand Down

0 comments on commit a995972

Please sign in to comment.