Package org.apache.cassandra.auth
Interface CIDRGroupsMappingTable<V>
- All Known Implementing Classes:
CIDRGroupsMappingIntervalTree
public interface CIDRGroupsMappingTable<V>
This interface defines functionality to be provided by algorithm(s) implementing CIDR to CIDR groups mappings,
to facilitate the efficient way to find the longest matching CIDR for a given IP
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilder to add CIDR to CIDR groups mappings and construct a mapping table with them -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> CIDRGroupsMappingTable.Builder<V>builder(boolean isIPv6) default StringgetIPTypeString(boolean isIPv6) Finds the longest matching CIDR for the given IP
-
Method Details
-
getIPTypeString
-
builder
-
lookupLongestMatchForIP
Finds the longest matching CIDR for the given IP- Parameters:
ip- IP to lookup CIDR group- Returns:
- returns CIDR group(s) associated with the longest matching CIDR for the given IP, returns null if no match found
-