Package net.shibboleth.idp.session.logic
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>
ABiPredicatethat checks if a pair of addresses are either equal, or share anIPRange.
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<IPRange>addressRangesIP ranges to match against.
-
Constructor Summary
Constructors Constructor Description IPRangeBiPredicate()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetRanges(Collection<IPRange> ranges)Set the address ranges to check against.booleantest(String input1, String input2)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
-
-
-
Field Detail
-
addressRanges
@Nonnull @NonnullElements private Collection<IPRange> addressRanges
IP ranges to match against.
-
-
Method Detail
-
setRanges
public void setRanges(@Nonnull @NonnullElements Collection<IPRange> ranges)
Set the address ranges to check against.- Parameters:
ranges- address ranges to check against
-
-