|
JBoss port of sunxacml 2.0.5-redhat-1 | |||||||||
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
org.jboss.security.xacml.sunxacml.attr.IPv4AddressAttribute
public class IPv4AddressAttribute
Subclass of IPAddressAttribute
that handles the specifics
of IPv4. In general, you shouldn't need to interact with this class
except to create an instance directly.
Field Summary |
---|
Fields inherited from class org.jboss.security.xacml.sunxacml.attr.IPAddressAttribute |
---|
identifier |
Constructor Summary | |
---|---|
IPv4AddressAttribute(InetAddress address)
Creates the new IPv4AddressAttribute with just the required
address component. |
|
IPv4AddressAttribute(InetAddress address,
InetAddress mask)
Creates the new IPv4AddressAttribute with the optional
address mask. |
|
IPv4AddressAttribute(InetAddress address,
InetAddress mask,
PortRange range)
Creates the new IPv4AddressAttribute with all the optional
components. |
|
IPv4AddressAttribute(InetAddress address,
PortRange range)
Creates the new IPv4AddressAttribute with the optional
port range. |
Method Summary | |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an obligation. |
protected static IPAddressAttribute |
getV4Instance(String value)
Returns a new IPv4AddressAttribute that represents
the name indicated by the String provided. |
Object |
getValue()
Get the value represented |
Methods inherited from class org.jboss.security.xacml.sunxacml.attr.IPAddressAttribute |
---|
equals, getAddress, getInstance, getInstance, getMask, getRange, hashCode, toString |
Methods inherited from class org.jboss.security.xacml.sunxacml.attr.AttributeValue |
---|
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IPv4AddressAttribute(InetAddress address)
IPv4AddressAttribute
with just the required
address component.
address
- a non-null InetAddress
public IPv4AddressAttribute(InetAddress address, InetAddress mask)
IPv4AddressAttribute
with the optional
address mask.
address
- a non-null InetAddress
mask
- an InetAddress
or null if there is no maskpublic IPv4AddressAttribute(InetAddress address, PortRange range)
IPv4AddressAttribute
with the optional
port range.
address
- a non-null InetAddress
portRange
- a non-null PortRange
public IPv4AddressAttribute(InetAddress address, InetAddress mask, PortRange range)
IPv4AddressAttribute
with all the optional
components.
address
- a non-null InetAddress
mask
- an InetAddress
or null if there is no maskportRange
- a non-null PortRange
Method Detail |
---|
protected static IPAddressAttribute getV4Instance(String value) throws UnknownHostException
IPv4AddressAttribute
that represents
the name indicated by the String
provided. This is a
protected method because you should never call it directly.
Instead, you should call getInstance
on
IPAddressAttribute
which provides versions that
take both a String
and a Node
and
will determine the protocol version correctly.
value
- a string representing the address
IPAddressAttribute
UnknownHostException
- if the address components is invalid
ParsingException
- if any of the address components is invalidpublic String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valuepublic Object getValue()
AttributeValue
getValue
in class AttributeValue
|
JBoss port of sunxacml 2.0.5-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |