public class AuthorizeRule extends Object
AccessRuleProvider
for authorization.Constructor and Description |
---|
AuthorizeRule() |
Modifier and Type | Method and Description |
---|---|
void |
add(AuthorizeRule other) |
void |
addRuleIfNotExist(AccessRule rule) |
Optional<AccessRule> |
allowRule()
Returns first matching rule with
AclPermissionType.ALLOW . |
boolean |
deny() |
Optional<AccessRule> |
denyRule()
Returns first matching rule with
AclPermissionType.DENY |
boolean |
noResourceAcls()
Returns true if there are no ACLs for the resource.
|
void |
noResourceAcls(boolean noResourceAcls) |
String |
toString() |
public Optional<AccessRule> denyRule()
AclPermissionType.DENY
public Optional<AccessRule> allowRule()
AclPermissionType.ALLOW
.
ALLOW rules may not be returned if there are DENY rules since search stops if a DENY
rule is found.public boolean noResourceAcls()
ConfluentAuthorizerConfig.ALLOW_IF_NO_ACLS_PROP
will be applied if `noResourceAcls` is true.public void addRuleIfNotExist(AccessRule rule)
public void add(AuthorizeRule other)
public void noResourceAcls(boolean noResourceAcls)
public boolean deny()