Class ZoneTraitDescriptor.IpAddressPredicate

java.lang.Object
com.inductiveautomation.ignition.gateway.authentication.securityzones.ZoneTraitDescriptor.IpAddressPredicate
All Implemented Interfaces:
com.google.common.base.Predicate<Object>, Predicate<Object>
Enclosing class:
ZoneTraitDescriptor<T>

protected static class ZoneTraitDescriptor.IpAddressPredicate extends Object implements com.google.common.base.Predicate<Object>
Tests an input IP address against a comma-delimited pattern list. Wildcards are valid for address subnets, like so:

a pattern of 10.20.5.*,10.22.*.* will return true for 10.20.5.200

You can also specify a range in an address subnet. This predicate will check each subnet in the input address, and return true only if all subnets are within the range in a pattern address. Example:

10.20.*.0-220,10.20.6.0-9 will return true for 10.20.5.200

  • Constructor Details

    • IpAddressPredicate

      public IpAddressPredicate(String pattern)
  • Method Details

    • apply

      public boolean apply(Object input)
      Specified by:
      apply in interface com.google.common.base.Predicate<Object>