public class X500Attribute extends Attribute
| Constructor and Description |
|---|
X500Attribute(org.w3c.dom.Document owner)
Creates a new
BasicAttribute instance. |
X500Attribute(org.w3c.dom.Element element)
Creates a new
BasicAttribute instance from the given Element node. |
X500Attribute(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
BasicAttribute instance from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeValue(byte[] attributeValue)
Adds a new
AttributeValue element to this Attribute. |
void |
addAttributeValue(java.lang.String[] attributeValues)
Deprecated.
Use
Attribute.addAttributeValues(String[]) instead. |
java.lang.String |
getAttributeProfileID()
Returns the Profile Identification URI.
|
java.util.List |
getAttributeValueBytes()
Returns the contents of this
Attribute's AttributeValues that have xsi:type="xs:base64binary". |
protected java.lang.String |
getX500Encoding()
Returns the value of this
Attribute element's x500prof:Encoding attribute. |
protected void |
setX500Encoding(java.lang.String encoding)
Sets the
x500prof:Encoding attribute of this Attribute element. |
addAttributeValue, addAttributeValue, addAttributeValue, addAttributeValues, getAttributeValues, getAttributeValuesAsStrings, getAttributeValuesAsStrings, getAttributeValueStrings, getFriendlyName, getName, getNameFormat, getXsiType, setFriendlyName, setName, setNameFormat, setXsiTypeaddNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public X500Attribute(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
BasicAttribute instance from the given Element node.element - A BasicAttribute element.org.w3c.dom.DOMException
public X500Attribute(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
BasicAttribute instance from the given Element node.element - A BasicAttribute element.systemId - The URI string system ID for the BasicAttribute.org.w3c.dom.DOMException
public X500Attribute(org.w3c.dom.Document owner)
throws org.w3c.dom.DOMException
BasicAttribute instance.owner - The owner document of the new BasicAttribute.org.w3c.dom.DOMExceptionpublic void addAttributeValue(java.lang.String[] attributeValues)
Attribute.addAttributeValues(String[]) instead.attributeValues - The array of attribute Value Strings.public void addAttributeValue(byte[] attributeValue)
AttributeValue element to this Attribute. The new element will have the attribute xsi:type="xs:base64binary".attributeValue - The bytes of the new AttributeValue element's content.protected void setX500Encoding(java.lang.String encoding)
x500prof:Encoding attribute of this Attribute element.encoding - The value defined in the SAML 2.0 specifications for string and binary attribute values is "LDAP", but an extension class could profile a different value type.protected java.lang.String getX500Encoding()
Attribute element's x500prof:Encoding attribute.x500prof:Encoding attribute, or null if none is set.public java.util.List getAttributeValueBytes()
Attribute's AttributeValues that have xsi:type="xs:base64binary".List of byte[]s, or null if no AttributeValues with xsi:type="xs:base64binary" are present.public java.lang.String getAttributeProfileID()
getAttributeProfileID in class Attribute