|
SunTM's XACML Implementation for JavaTM | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.attr.AttributeValue
com.sun.xacml.attr.X500NameAttribute
public class X500NameAttribute
Representation of an X500 Name.
Field Summary | |
---|---|
static String |
identifier
Official name of this type |
Constructor Summary | |
---|---|
X500NameAttribute(X500Principal value)
Creates a new X500NameAttribute that represents the
value supplied. |
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. |
static X500NameAttribute |
getInstance(Node root)
Returns a new |
static X500NameAttribute |
getInstance(String value)
Returns a new X500NameAttribute that represents
the X500 Name value indicated by the string provided. |
X500Principal |
getValue()
Returns the name value represented by this object |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same type. |
Methods inherited from class com.sun.xacml.attr.AttributeValue |
---|
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String identifier
Constructor Detail |
---|
public X500NameAttribute(X500Principal value)
X500NameAttribute
that represents the
value supplied.
value
- the X500 Name to be representedMethod Detail |
---|
public static X500NameAttribute getInstance(Node root) throws IllegalArgumentException
root
- the Node
that contains the desired value
X500NameAttribute
representing the
appropriate value
IllegalArgumentException
- if value is improperly specifiedpublic static X500NameAttribute getInstance(String value) throws IllegalArgumentException
X500NameAttribute
that represents
the X500 Name value indicated by the string provided.
value
- a string representing the desired value
X500NameAttribute
representing the
appropriate value
IllegalArgumentException
- if value is improperly specifiedpublic X500Principal getValue()
public boolean equals(Object o)
javax.security.auth.x500.X500Principal.equals()
, while the
XACML spec uses a slightly different procedure. In practice, it is
expected that this difference will not be noticeable. For more
details, refer to the javadoc for X500Principal.equals()
and the XACML specification.
equals
in class Object
o
- the object to compare
public int hashCode()
hashCode
in class Object
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the value
|
Sun's XACML Implementation Version 1.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.