Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We add new config parameter in KafkaConfig named “security.provider.class.names”. The value of “security.provider.class.names” is expected to be a comma separated string representing the providers' full classname. This provider classes will be added to the JVM through Security.addProvider api. Security class can be used to programmatically add the provider classes to the JVM. The provider classes will be added at the starting position in the list of providers and in the order they are passed. So any algorithm implemented in the earlier classes will replace algorithm implementations with the same name in following providers. For SASL, we add the providers after the login modules are configured so that the algorithms in the providers passed can take precedence over the passed SASL login modules.

Code Block
themeFadeToGrey
for (String provider : givenProvidersListReversed) {
   // Adds at position 0
   Security.addProvider((Provider) Class.forName(provider).newInstance());
}

...