Class ResourcePattern
java.lang.Object
io.confluent.security.authorizer.ResourcePattern
- All Implemented Interfaces:
Comparable<ResourcePattern>
Represents a resource pattern that can be used to define an
AccessRule. This uses
resource types that are not pre-defined, enabling this class to be used for defining
rules in different components.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResourcePattern(io.confluent.security.roledefinitions.ResourceType resourceType, String name, org.apache.kafka.common.resource.PatternType patternType) ResourcePattern(String type, String name, org.apache.kafka.common.resource.PatternType patternType) -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourcePatternall(io.confluent.security.roledefinitions.ResourceType resourceType) intcompareTo(ResourcePattern other) booleanstatic ResourcePatternfrom(org.apache.kafka.common.resource.ResourcePattern resourcePattern) static ResourcePatternfrom(org.apache.kafka.common.resource.ResourcePatternFilter resourcePattern) inthashCode()AclBindingKey(ResourcePattern, Scope) is used to determine the _confluent-metadata-auth topic partition for storing AclBindingKey/Value.name()org.apache.kafka.common.resource.PatternTypeio.confluent.security.roledefinitions.ResourceTypestatic org.apache.kafka.common.resource.ResourcePatternto(ResourcePattern resourcePattern) toFilter()toString()
-
Field Details
-
ALL
-
-
Constructor Details
-
ResourcePattern
-
ResourcePattern
public ResourcePattern(io.confluent.security.roledefinitions.ResourceType resourceType, String name, org.apache.kafka.common.resource.PatternType patternType)
-
-
Method Details
-
name
-
resourceType
public io.confluent.security.roledefinitions.ResourceType resourceType() -
patternType
public org.apache.kafka.common.resource.PatternType patternType() -
toFilter
-
equals
-
hashCode
public int hashCode()AclBindingKey(ResourcePattern, Scope) is used to determine the _confluent-metadata-auth topic partition for storing AclBindingKey/Value. To make hashCode() constant across executions, we are using patternType.name() to compute the hashCode of ResourcePattern, -
compareTo
- Specified by:
compareToin interfaceComparable<ResourcePattern>
-
toString
-
all
-
from
public static ResourcePattern from(org.apache.kafka.common.resource.ResourcePattern resourcePattern) -
to
-
from
public static ResourcePattern from(org.apache.kafka.common.resource.ResourcePatternFilter resourcePattern)
-