jcshepherd commented on code in PR #4427:
URL: https://github.com/apache/cassandra/pull/4427#discussion_r3041979915
##########
src/java/org/apache/cassandra/auth/IAuthenticator.java:
##########
@@ -66,6 +66,27 @@ default boolean supportsEarlyAuthentication()
*/
Set<? extends IResource> protectedResources();
+ /**
+ * Set of IRoleManager.Options used by this authenticator and supported by
CREATE ROLE and ALTER ROLE statements.
+ *
+ * @return A set of IRoleManager.Options that this authenticator requires
support for.
+ */
+ default Set<IRoleManager.Option> getSupportedRoleOptions()
+ {
+ return Set.of();
+ }
+
+ /**
+ * Set of IRoleManager.Options used by this authenticator that users are
allowed to alter via
+ * ALTER ROLE statements. Alterable role options must also be supported
role options.
+ *
+ * @return A set of supported role options that users are allowed to alter.
+ */
+ default Set<IRoleManager.Option> getAlterableRoleOptions()
+ {
+ return Set.of();
+ }
Review Comment:
Yes, exactly.
--
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]