Class CIDRGroupsMappingCache


  • public class CIDRGroupsMappingCache
    extends java.lang.Object
    CIDR groups mapping cache. Periodically reloads the cache with the latest entries in the table AuthKeyspace.CIDR_GROUPS
    • Method Detail

      • loadCidrGroupsCache

        public void loadCidrGroupsCache()
        Builds CIDR groups cache the first time. Should be called before auth starts sending lookup IP requests
      • lookupCidrGroupsForIp

        public java.util.Set<java.lang.String> lookupCidrGroupsForIp​(java.net.InetAddress ipAddr)
        Lookup best matching CIDR group for the given IP
        Parameters:
        ipAddr - IP address
        Returns:
        returns set of CIDR group(s)