Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6561

Change visibility of aclMatch in SimpleAclAuthorizer to protected to allow overriding in subclasses

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.0.0
    • None
    • core
    • None

    Description

      Currently the visibility of the aclMatch function in the SimpleAclAuthorizer class is set to private, thus prohibiting subclasses from overriding this method. I think this was originally done as this function is not supposed to be part of the public Api of this class, which makes sense.
      However when creating a custom authorizer this would be a very useful method to override, as it allows to reuse a large amount of boilerplate code around loading and applying ACLs and simply changing the way that ACLs are matched.

      Could we change the visibility of this method to protected, thus still keeping it out of the public interface but allowing for subclasses to override it?

      Attachments

        Issue Links

          Activity

            People

              sliebau Sönke Liebau
              sliebau Sönke Liebau
              Colin McCabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: