Class AuthorizeRule

java.lang.Object
io.confluent.security.authorizer.provider.AuthorizeRule

public class AuthorizeRule extends Object
Matching access rules returned by AccessRuleProvider for authorization.
  • Constructor Details

    • AuthorizeRule

      public AuthorizeRule()
  • Method Details

    • denyRule

      public Optional<AccessRule> denyRule()
      Returns first matching rule with AclPermissionType.DENY
    • allowRule

      public Optional<AccessRule> allowRule()
      Returns first matching rule with AclPermissionType.ALLOW. ALLOW rules may not be returned if there are DENY rules since search stops if a DENY rule is found.
    • noResourceAcls

      public boolean noResourceAcls()
      Returns true if there are no ACLs for the resource. ConfluentAuthorizerConfig.ALLOW_IF_NO_ACLS_PROP will be applied if `noResourceAcls` is true.
    • addRuleIfNotExist

      public void addRuleIfNotExist(AccessRule rule)
    • add

      public void add(AuthorizeRule other)
    • noResourceAcls

      public void noResourceAcls(boolean noResourceAcls)
    • deny

      public boolean deny()
    • toString

      public String toString()
      Overrides:
      toString in class Object