public class X500NameAttribute extends AttributeValue
Modifier and Type | Field and Description |
---|---|
static String |
identifier
Official name of this type
|
Constructor and Description |
---|
X500NameAttribute(X500Principal value)
Creates a new
X500NameAttribute that represents the
value supplied. |
Modifier and Type | Method and Description |
---|---|
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.
|
encode, encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag
public static final String identifier
public X500NameAttribute(X500Principal value)
X500NameAttribute
that represents the
value supplied.value
- the X500 Name to be representedpublic static X500NameAttribute getInstance(Node root) throws IllegalArgumentException
root
- the Node
that contains the desired valueX500NameAttribute
representing the
appropriate valueIllegalArgumentException
- 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 valueX500NameAttribute
representing the
appropriate valueIllegalArgumentException
- if value is improperly specifiedpublic X500Principal getValue()
getValue
in class AttributeValue
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.public int hashCode()
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valueCopyright © 2023 JBoss by Red Hat. All rights reserved.