Class IPRangeBiPredicate

java.lang.Object
net.shibboleth.idp.session.logic.IPRangeBiPredicate
All Implemented Interfaces:
BiPredicate<String,String>

public class IPRangeBiPredicate extends Object implements BiPredicate<String,String>
A BiPredicate that checks if a pair of addresses are either equal, or share an IPRange.
  • Field Details

    • addressRanges

      @Nonnull private Collection<IPRange> addressRanges
      IP ranges to match against.
  • Constructor Details

    • IPRangeBiPredicate

      IPRangeBiPredicate()
      Constructor.
  • Method Details

    • setRanges

      public void setRanges(@Nonnull Collection<IPRange> ranges)
      Set the address ranges to check against.
      Parameters:
      ranges - address ranges to check against
    • test

      public boolean test(@Nullable String input1, @Nullable String input2)
      Specified by:
      test in interface BiPredicate<String,String>