public class Action
extends java.lang.Object
Constructor and Description |
---|
Action(Scope scope,
ResourcePattern resourcePattern,
Operation operation)
Constructs an authorizable action
|
Action(Scope scope,
ResourceType resourceType,
java.lang.String resourceName,
Operation operation)
Constructs a cross-component authorizable action for a literal resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
Operation |
operation() |
java.lang.String |
resourceName() |
ResourcePattern |
resourcePattern() |
ResourceType |
resourceType() |
Scope |
scope() |
java.lang.String |
toString() |
public Action(Scope scope, ResourceType resourceType, java.lang.String resourceName, Operation operation)
scope
- Scope of resourceresourceType
- Resource typeresourceName
- Non-null name of resourceoperation
- Operation being performed on resourcepublic Action(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 Scope scope()
public ResourceType resourceType()
public java.lang.String resourceName()
public Operation operation()
public ResourcePattern resourcePattern()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object