Class ResourcePatternFilter

java.lang.Object
io.confluent.security.authorizer.ResourcePatternFilter

public class ResourcePatternFilter extends Object
Represents a resource pattern filter that can be used to match resources while describing or deleting access rules.
  • Constructor Details

    • ResourcePatternFilter

      public ResourcePatternFilter(io.confluent.security.roledefinitions.ResourceType resourceType, String name, org.apache.kafka.common.resource.PatternType patternType)
      Constructs a resource filter. See ResourcePatternFilter for description of matching logic.
      Parameters:
      resourceType - Resource type or 'All' to match all resource types
      name - 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

      public String name()
    • resourceType

      public io.confluent.security.roledefinitions.ResourceType resourceType()
    • patternType

      public org.apache.kafka.common.resource.PatternType patternType()
    • matches

      public boolean matches(ResourcePattern resource)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object