Class ResourcePatternFilter
java.lang.Object
io.confluent.security.authorizer.ResourcePatternFilter
Represents a resource pattern filter that can be used to match resources while
describing or deleting access rules.
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePatternFilter(io.confluent.security.roledefinitions.ResourceType resourceType, String name, org.apache.kafka.common.resource.PatternType patternType) Constructs a resource filter. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanmatches(ResourcePattern resource) name()org.apache.kafka.common.resource.PatternTypeio.confluent.security.roledefinitions.ResourceTypetoString()
-
Constructor Details
-
ResourcePatternFilter
public ResourcePatternFilter(io.confluent.security.roledefinitions.ResourceType resourceType, String name, org.apache.kafka.common.resource.PatternType patternType) Constructs a resource filter. SeeResourcePatternFilterfor description of matching logic.- Parameters:
resourceType- Resource type or 'All' to match all resource typesname- Resource name to match. Null value matches any resource name. '*' matches only LITERAL wildcard.patternType- Pattern type which may include MATCH or ANY
-
-
Method Details
-
name
-
resourceType
public io.confluent.security.roledefinitions.ResourceType resourceType() -
patternType
public org.apache.kafka.common.resource.PatternType patternType() -
matches
-
equals
-
hashCode
-
toString
-