tiagomlalves commented on code in PR #3564:
URL: https://github.com/apache/cassandra/pull/3564#discussion_r1773233366


##########
src/java/org/apache/cassandra/auth/AuthConfig.java:
##########
@@ -133,4 +124,21 @@ public static void applyAuth()
         cidrAuthorizer.validateConfiguration();
         DatabaseDescriptor.getInternodeAuthenticator().validateConfiguration();
     }
+
+    public static <T> T authInstantiate(ParameterizedClass authCls, Class<T> 
defaultCls) {
+        if (authCls != null && authCls.class_name != null)
+        {
+            String authPackage = AuthConfig.class.getPackage().getName();
+            return ParameterizedClass.newInstance(authCls, Arrays.asList("", 
authPackage));

Review Comment:
   @smiklosovic thanks for looking at this.
   
   FQCN form is supported by `ParameterizedClass` by specifying an empty search 
package (first element of the array). This should be required when specifying a 
own implementation of authentication / authorization classes.



-- 
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]

Reply via email to