Versions Compared

Key

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

...

  • We would add new methods getMatchingAcls(resource) and getMatchingAcls(principal) to the Authorizerinterface.

    Code Block
    languagejavascala
    titleAuthorizer
      /**
        * Get set of all acls that match this resource.
        * @param resource regular or wildcard-suffixed resource name.
        * @return empty set if no acls are found, otherwise the acls for the matching resources.
        */
      def getMatchingAcls(resource: Resource): Set[Acl]
    
      /**
        * Get set of all acls that match this principal.
        * @param principal regular or wild-suffixed principal name.
        * @return empty Map if no acls exist, otherwise a map of resource -> acls.
        */
      def getMatchingAcls(principal: KafkaPrincipal): Map[Resource, Set[Acl]]

...