|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.xacml.sunxacml.attr.AttributeValue
org.jboss.security.xacml.sunxacml.attr.IPAddressAttribute
public abstract class IPAddressAttribute
Represents the IPAddress datatype introduced in XACML 2.0. All objects of this class are immutable and all methods of the class are thread-safe.
To create an instance of an ipAddress from an encoded String or a DOM
Node you should use the getInstance methods provided by
this class. To construct an ipAddress instance directly, you must use
the constructors provided by IPv4AddressAttribute and
IPv6AddressAttribute. These will both create an attribute
of XACML type ipAddress, but will handle the differences in these
two representations correctly.
| Field Summary | |
|---|---|
static String |
identifier
Official name of this type |
| Constructor Summary | |
|---|---|
protected |
IPAddressAttribute(InetAddress address,
InetAddress mask,
PortRange range)
Creates the new IPAddressAttribute with all the optional
components. |
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true if the input is an instance of this class and if its value equals the value contained in this class. |
InetAddress |
getAddress()
Returns the address represented by this object. |
static IPAddressAttribute |
getInstance(Node root)
Returns a new IPAddressAttribute that represents
the name at a particular DOM node. |
static IPAddressAttribute |
getInstance(String value)
Returns a new IPAddressAttribute that represents
the name indicated by the String provided. |
InetAddress |
getMask()
Returns the mask represented by this object, or null if there is no mask. |
PortRange |
getRange()
Returns the port range represented by this object which will be unbound if no range was specified. |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same type. |
String |
toString()
Converts to a String representation. |
| Methods inherited from class org.jboss.security.xacml.sunxacml.attr.AttributeValue |
|---|
encode, encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String identifier
| Constructor Detail |
|---|
protected IPAddressAttribute(InetAddress address,
InetAddress mask,
PortRange range)
IPAddressAttribute with all the optional
components.
address - a non-null InetAddressmask - an InetAddress or null if there is no maskportRange - a non-null PortRange| Method Detail |
|---|
public static IPAddressAttribute getInstance(Node root)
throws ParsingException
IPAddressAttribute that represents
the name at a particular DOM node.
root - the Node that contains the desired value
IPAddressAttribute representing the
appropriate value (null if there is a parsing error)
ParsingException - if any of the address components is invalid
public static IPAddressAttribute getInstance(String value)
throws ParsingException
IPAddressAttribute that represents
the name indicated by the String provided.
value - a string representing the address
IPAddressAttribute
ParsingException - if any of the address components is invalidpublic InetAddress getAddress()
public InetAddress getMask()
public PortRange getRange()
public boolean equals(Object o)
equals in class Objecto - the object to compare
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||