smiklosovic commented on code in PR #2490:
URL: https://github.com/apache/cassandra/pull/2490#discussion_r1266372680
##########
src/java/org/apache/cassandra/config/DatabaseDescriptor.java:
##########
@@ -1217,6 +1221,25 @@ public static void applySslContext()
}
}
+ public static void applyCryptoProvider()
+ {
+ try
+ {
+ if (conf.crypto_provider == null)
+ conf.crypto_provider = new
ParameterizedClass("org.apache.cassandra.security.DefaultCryptoProvider", null);
+
+ Class<?> cryptoProviderClass =
Class.forName(conf.crypto_provider.class_name);
+ cryptoProvider =
(ICryptoProvider)cryptoProviderClass.getConstructor(Map.class).newInstance(conf.crypto_provider.parameters);
+
+ cryptoProvider.installProvider();
+ }
+ catch(Exception e)
+ {
+ throw new ConfigurationException("Failed to initialize crypto
Provider.", e);
Review Comment:
It would be nice to say what was the class (from class_name) of the provider
we failed to initialize.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]