|
||||||||||
| 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.DNSNameAttribute
public class DNSNameAttribute
Represents the DNSName datatype introduced in XACML 2.0. All objects of this class are immutable and all methods of the class are thread-safe.
| Field Summary | |
|---|---|
static String |
identifier
Official name of this type |
| Constructor Summary | |
|---|---|
DNSNameAttribute(String hostname)
Creates the new DNSNameAttribute with only the required
hostname component. |
|
DNSNameAttribute(String hostname,
PortRange range)
Creates the new DNSNameAttribute with the optional
port range component. |
|
| Method Summary | |
|---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an obligation. |
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. |
String |
getHostName()
Returns the host name represented by this object. |
static DNSNameAttribute |
getInstance(Node root)
Returns a new DNSNameAttribute that represents
the name at a particular DOM node. |
static DNSNameAttribute |
getInstance(String value)
Returns a new DNSNameAttribute that represents
the name indicated by the String provided. |
PortRange |
getPortRange()
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. |
boolean |
isSubdomain()
Returns true if the leading character in the hostname is a '*', and therefore represents a matching subdomain, or false otherwise. |
String |
toString()
Converts to a String representation. |
| 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 |
| Field Detail |
|---|
public static final String identifier
| Constructor Detail |
|---|
public DNSNameAttribute(String hostname)
throws ParsingException
DNSNameAttribute with only the required
hostname component.
hostname - the host name component of the address
ParsingException - if the hostname is invalid
public DNSNameAttribute(String hostname,
PortRange range)
throws ParsingException
DNSNameAttribute with the optional
port range component.
hostname - the host name component of the addressrange - the port range
ParsingException - if the hostname is invalid| Method Detail |
|---|
public static DNSNameAttribute getInstance(Node root)
throws ParsingException
DNSNameAttribute that represents
the name at a particular DOM node.
root - the Node that contains the desired value
DNSNameAttribute representing the
appropriate value (null if there is a parsing error)
ParsingException - if the hostname is invalid
public static DNSNameAttribute getInstance(String value)
throws ParsingException
DNSNameAttribute that represents
the name indicated by the String provided.
value - a string representing the name
DNSNameAttribute
ParsingException - if the hostname is invalidpublic String getHostName()
public PortRange getPortRange()
public boolean isSubdomain()
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 Objectpublic String encode()
AttributeValue
encode in class AttributeValueString form of the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||