Versions Compared

Key

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

...

3. `org.apache.kafka.server.authorizer.Authorizer` will have a new interface for checking if the caller is allowed authorized to perform the the given ACL operation on at least one resource of the resource given type.

Code Block
languagejava
firstline144
titleclients/src/main/java/org/apache/kafka/server/authorizer/Authorizer.java
linenumberstrue
collapsetrue
boolean allowedOnAtLeastOneRecourse    /**
     * Check if the caller is authorized to perform the given ACL operation on at least one
     * resource of the given type.
     *
     * @param requestContext Request context including request type, security protocol, and listener name
     * @param op             The ACL Operation to check
     * @param resourceType   The type of the resource to check
     * @return               Return true if the caller is authorized to perform the given ACL operation
     *                       on at least one resource of the given type. Return false otherwise.
     */
    boolean authorizedOnAtLeastOneRecourse(AuthorizableRequestContext requestContext, AclOperation op, ResourceType resourceType);

...