Package com.sun.identity.saml.assertion
Class Attribute
java.lang.Object
com.sun.identity.saml.assertion.AttributeDesignator
com.sun.identity.saml.assertion.Attribute
The
Attribute
element specifies an attribute of the assertion
subject. The Attribute
element is an extension of the
AttributeDesignator
element
that allows the attribute value to be specified.-
Field Summary
Fields inherited from class com.sun.identity.saml.assertion.AttributeDesignator
_attributeName, _attributeNameSpace
-
Constructor Summary
ConstructorDescriptionConstructs an instance ofAttribute
.Constructs an instance ofAttribute
.Constructs an attribute element from an existing XML block. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeValue
(String value) AddsAttributeValue
to the Attribute.void
addAttributeValue
(Element element) AddsAttributeValue
to the Attribute.ReturnsAttributeValue
from the Attribute.toString()
Returns a String representation of the<saml:Attribute>
element,toString
(boolean includeNS, boolean declareNS) Returns a String representation of the<saml:Attribute>
element.Methods inherited from class com.sun.identity.saml.assertion.AttributeDesignator
getAttributeName, getAttributeNamespace
-
Field Details
-
_attributeValue
-
-
Constructor Details
-
Attribute
Constructs an attribute element from an existing XML block.- Parameters:
element
- representing a DOM tree element.- Throws:
SAMLException
- if there is an error in the sender or in the element definition.
-
Attribute
Constructs an instance ofAttribute
.- Parameters:
name
- A String representingAttributeName
(the name of the attribute).nameSpace
- A String representing the namespace in whichAttributeName
elements are interpreted.values
- A List of DOM element representing theAttributeValue
object.- Throws:
SAMLException
- if there is an error in the sender or in the element definition.
-
Attribute
Constructs an instance ofAttribute
.- Parameters:
name
- The name of the attribute.nameSpace
- The namespace in whichAttributeName
elements are interpreted.attributeValue
- anAttributeValue
object.- Throws:
SAMLException
- if there is an error in the sender or in the element definition.
-
-
Method Details
-
getAttributeValue
ReturnsAttributeValue
from the Attribute.- Returns:
- A list of DOM Element representing the
AttributeValue
block. - Throws:
SAMLException
- If there was an error.
-
addAttributeValue
AddsAttributeValue
to the Attribute.- Parameters:
value
- A String representingAttributeValue
.- Throws:
SAMLException
- If there was an error.
-
addAttributeValue
AddsAttributeValue
to the Attribute.- Parameters:
element
- An Element object representingAttributeValue
.- Throws:
SAMLException
- If there was an error.
-
toString
Returns a String representation of the<saml:Attribute>
element,- Overrides:
toString
in classAttributeDesignator
- Returns:
- A string containing the valid XML for this element.
-
toString
Returns a String representation of the<saml:Attribute>
element.- Overrides:
toString
in classAttributeDesignator
- Parameters:
includeNS
- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared within the Element.- Returns:
- A string containing the valid XML for this element
-