Class IPRange
java.lang.Object
net.shibboleth.shared.net.IPRange
net.shibboleth.utilities.java.support.net.IPRange
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a range of IP addresses.
-
Constructor Summary
ConstructorsConstructorDescriptionIPRange(byte[] address, int maskSize) Deprecated, for removal: This API element is subject to removal in a future version.Constructor.IPRange(InetAddress address, int maskSize) Deprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic IPRangeparseCIDRBlock(String cidrBlock) Deprecated, for removal: This API element is subject to removal in a future version.Parses a CIDR block definition in to an IP range.Methods inherited from class net.shibboleth.shared.net.IPRange
contains, contains, getHostAddress, getNetworkAddress, toBitSet
-
Constructor Details
-
IPRange
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
address- address to base the range on; may be the network address or the address of a host within the networkmaskSize- the number of bits in the netmask- Throws:
IllegalArgumentException- if the address or mask are invalid
-
IPRange
Deprecated, for removal: This API element is subject to removal in a future version.Constructor.- Parameters:
address- address to base the range on; may be the network address or the address of a host within the networkmaskSize- the number of bits in the netmask- Throws:
IllegalArgumentException- if the address or mask are invalid
-
-
Method Details
-
parseCIDRBlock
@Nonnull public static IPRange parseCIDRBlock(@Nonnull @NotEmpty String cidrBlock) throws IllegalArgumentException Deprecated, for removal: This API element is subject to removal in a future version.Parses a CIDR block definition in to an IP range.- Parameters:
cidrBlock- the CIDR block definition- Returns:
- the resultant IP range
- Throws:
IllegalArgumentException- if expression cannot be parsed
-