public class Action extends Object
Constructor and Description |
---|
Action(io.confluent.security.authorizer.Scope scope,
ResourcePattern resourcePattern,
Operation operation)
Constructs an authorizable action
|
Action(io.confluent.security.authorizer.Scope scope,
ResourcePattern resourcePattern,
Operation operation,
int resourceReferenceCount,
boolean logIfAllowed,
boolean logIfDenied)
Constructs an authorizable action
|
Action(io.confluent.security.authorizer.Scope scope,
ResourceType resourceType,
String resourceName,
Operation operation)
Constructs a cross-component authorizable action for a literal resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
logIfAllowed() |
boolean |
logIfDenied() |
Operation |
operation() |
String |
resourceName() |
ResourcePattern |
resourcePattern() |
int |
resourceReferenceCount() |
ResourceType |
resourceType() |
io.confluent.security.authorizer.Scope |
scope() |
org.apache.kafka.server.authorizer.Action |
toKafkaAction() |
String |
toString() |
public Action(io.confluent.security.authorizer.Scope scope, ResourceType resourceType, String resourceName, Operation operation)
scope
- Scope of resourceresourceType
- Resource typeresourceName
- Non-null name of resourceoperation
- Operation being performed on resourcepublic Action(io.confluent.security.authorizer.Scope scope, ResourcePattern resourcePattern, Operation operation)
scope
- Scope of resourceresourcePattern
- Resource pattern must be literal for Kafka and other components
using Metadata Service for authorization. Metadata Service may authorize actions with
any pattern type including ANY and MATCH.operation
- Operation being performed on resourcepublic Action(io.confluent.security.authorizer.Scope scope, ResourcePattern resourcePattern, Operation operation, int resourceReferenceCount, boolean logIfAllowed, boolean logIfDenied)
scope
- Scope of resourceresourcePattern
- Resource pattern must be literal for Kafka and other components
using Metadata Service for authorization. Metadata Service may authorize actions with
any pattern type including ANY and MATCH.operation
- Operation being performed on resourceresourceReferenceCount
- Number of times the resource is referenced in the requestlogIfAllowed
- Enable audit logging if permission is grantedlogIfDenied
- Enable audit logging if permission is deniedpublic io.confluent.security.authorizer.Scope scope()
public ResourceType resourceType()
public String resourceName()
public Operation operation()
public ResourcePattern resourcePattern()
public int resourceReferenceCount()
public boolean logIfAllowed()
public boolean logIfDenied()
public org.apache.kafka.server.authorizer.Action toKafkaAction()