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
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanbooleanio.confluent.security.roledefinitions.Operationintio.confluent.security.roledefinitions.ResourceTypeio.confluent.security.authorizer.Scopescope()org.apache.kafka.server.authorizer.ActiontoString()withScope(io.confluent.security.authorizer.Scope newScope) Returns a copy of this action rebound tonewScope; all other fields (resource, operation, audit flags) are unchanged.
-
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() -
withScope
Returns a copy of this action rebound tonewScope; all other fields (resource, operation, audit flags) are unchanged. Used by the authorizer to re-check a denied action at an alternate scope (see).invalid reference
ScopeFallback#recheckOnDeny -
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
-
toString
-
toKafkaAction
public org.apache.kafka.server.authorizer.Action toKafkaAction()
-