Class AuthorizeRule
java.lang.Object
io.confluent.security.authorizer.provider.AuthorizeRule
Matching access rules returned by
AccessRuleProvider for authorization.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AuthorizeRule other) voidaddRuleIfNotExist(AccessRule rule) Returns first matching rule withAclPermissionType.ALLOW.booleandeny()denyRule()Returns first matching rule withAclPermissionType.DENYbooleanReturns true if there are no ACLs for the resource.voidnoResourceAcls(boolean noResourceAcls) toString()
-
Constructor Details
-
AuthorizeRule
public AuthorizeRule()
-
-
Method Details
-
denyRule
Returns first matching rule withAclPermissionType.DENY -
allowRule
Returns first matching rule withAclPermissionType.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_PROPwill be applied if `noResourceAcls` is true. -
addRuleIfNotExist
-
add
-
noResourceAcls
public void noResourceAcls(boolean noResourceAcls) -
deny
public boolean deny() -
toString
-