|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.shibboleth.idp.util.IPRange
public class IPRange
Represents a range of IP addresses.
| Constructor Summary | |
|---|---|
IPRange(byte[] networkAddress,
int maskSize)
Constructor |
|
IPRange(InetAddress networkAddress,
int maskSize)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
contains(byte[] address)
Determines whether the given address is contained in the IP range. |
boolean |
contains(InetAddress address)
Determines whether the given address is contained in the IP range. |
static IPRange |
parseCIDRBlock(String cidrBlock)
Parses a CIDR block definition in to an IP range. |
protected BitSet |
toBitSet(byte[] bytes)
Converts a byte array to a BitSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPRange(InetAddress networkAddress,
int maskSize)
networkAddress - the network address for the rangemaskSize - the number of bits in the netmask
public IPRange(byte[] networkAddress,
int maskSize)
networkAddress - the network address for the rangemaskSize - the number of bits in the netmask| Method Detail |
|---|
public static IPRange parseCIDRBlock(String cidrBlock)
cidrBlock - the CIDR block definition
public boolean contains(InetAddress address)
address - the address to check
public boolean contains(byte[] address)
address - the address to check
protected BitSet toBitSet(byte[] bytes)
bytes - the byte array with most significant bit in element 0.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||