public final class AddressMask extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
matches(InetAddress address)
Returns
true if this address mask matches the provided address. |
static boolean |
matchesAny(Collection<AddressMask> masks,
InetAddress address)
Returns
true if an address matches any of the provided address
masks. |
String |
toString()
Returns the string representation of this address mask.
|
static AddressMask |
valueOf(String mask)
Parses the provided string as an address mask.
|
public static boolean matchesAny(Collection<AddressMask> masks, InetAddress address)
true
if an address matches any of the provided address
masks.address
- The address.masks
- A collection of address masks to check.true
if an address matches any of the provided address
masks.public static AddressMask valueOf(String mask)
mask
- The address mask string to be parsed.LocalizedIllegalArgumentException
- If the provided string cannot be decoded as an address mask.public boolean matches(InetAddress address)
true
if this address mask matches the provided address.address
- The address.true
if this address mask matches the provided address.Copyright 2010-2022 ForgeRock AS.