public final class X500NameValue extends StringParseableValue<String>
StringParseableValue.Factory<AV extends AttributeValue>
SimpleValue.BaseFactory<AV extends AttributeValue>
value
Constructor and Description |
---|
X500NameValue(String value)
Creates a new
X500NameValue from string form |
X500NameValue(X500Principal value)
Creates a new
X500NameValue from an X500Principal . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
match(X500NameValue other)
Implements XACML function 'urn:oasis:names:tc:xacml:1.0:function:x500Name-match' with this as first argument.
|
String |
printXML()
Converts the internal value (accessible via
SimpleValue.getUnderlyingValue() to a valid lexical representation for XML marshalling. |
getXmlAttributes
getContent, getUnderlyingValue, toString
public X500NameValue(X500Principal value) throws IllegalArgumentException
X500NameValue
from an X500Principal
.value
- a string representing the X500 nameIllegalArgumentException
- if value is not a valid XACML X500Namepublic X500NameValue(String value) throws IllegalArgumentException
X500NameValue
from string formvalue
- a string representing the X500 nameIllegalArgumentException
- if value is not a valid XACML X500Namepublic boolean match(X500NameValue other)
other
- the second argumentother's value when compared using x500Name-equal.
public int hashCode()
hashCode
in class SimpleValue<String>
public boolean equals(Object obj)
equals
in class SimpleValue<String>
public String printXML()
SimpleValue.getUnderlyingValue()
to a valid lexical representation for XML marshalling. Equivalent to the 'printMethod' in JAXB 'javaType' binding
customizations. Implementations of this typically call DatatypeConverter
. This method is called by SimpleValue.getContent()
and its result cached by the same method for later use.
Therefore, no need to cache the result in the implementation.printXML
in class SimpleValue<String>
Copyright © 2012–2020. All rights reserved.