Package io.confluent.security.authorizer
Class Action
java.lang.Object
io.confluent.security.authorizer.Action
Represents an authorizable action, which is an operation performed on a resource.
-
Constructor Summary
ConstructorsConstructorDescriptionAction(io.confluent.security.authorizer.Scope scope, ResourcePattern resourcePattern, io.confluent.security.roledefinitions.Operation operation) Constructs an authorizable actionAction(io.confluent.security.authorizer.Scope scope, ResourcePattern resourcePattern, io.confluent.security.roledefinitions.Operation operation, int resourceReferenceCount, boolean logIfAllowed, boolean logIfDenied) Constructs an authorizable actionAction(io.confluent.security.authorizer.Scope scope, io.confluent.security.roledefinitions.ResourceType resourceType, String resourceName, io.confluent.security.roledefinitions.Operation operation) Constructs a cross-component authorizable action for a literal resource. -
Method Summary
-
Constructor Details
-
Action
public Action(io.confluent.security.authorizer.Scope scope, io.confluent.security.roledefinitions.ResourceType resourceType, String resourceName, io.confluent.security.roledefinitions.Operation operation) Constructs a cross-component authorizable action for a literal resource.- Parameters:
scope- Scope of resourceresourceType- Resource typeresourceName- Non-null name of resourceoperation- Operation being performed on resource
-
Action
public Action(io.confluent.security.authorizer.Scope scope, ResourcePattern resourcePattern, io.confluent.security.roledefinitions.Operation operation) Constructs an authorizable action- Parameters:
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 resource
-
Action
public Action(io.confluent.security.authorizer.Scope scope, ResourcePattern resourcePattern, io.confluent.security.roledefinitions.Operation operation, int resourceReferenceCount, boolean logIfAllowed, boolean logIfDenied) Constructs an authorizable action- Parameters:
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 denied
-
-
Method Details
-
scope
public io.confluent.security.authorizer.Scope scope() -
resourceType
public io.confluent.security.roledefinitions.ResourceType resourceType() -
resourceName
-
operation
public io.confluent.security.roledefinitions.Operation operation() -
resourcePattern
-
resourceReferenceCount
public int resourceReferenceCount() -
logIfAllowed
public boolean logIfAllowed() -
logIfDenied
public boolean logIfDenied() -
equals
-
hashCode
public int hashCode() -
toString
-
toKafkaAction
public org.apache.kafka.server.authorizer.Action toKafkaAction()
-