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
FieldsFields inherited from class com.sun.identity.saml.assertion.AttributeDesignator
_attributeName, _attributeNameSpace -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofAttribute.Constructs an instance ofAttribute.Constructs an attribute element from an existing XML block. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeValue(String value) AddsAttributeValueto the Attribute.voidaddAttributeValue(Element element) AddsAttributeValueto the Attribute.ReturnsAttributeValuefrom 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 whichAttributeNameelements are interpreted.values- A List of DOM element representing theAttributeValueobject.- 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 whichAttributeNameelements are interpreted.attributeValue- anAttributeValueobject.- Throws:
SAMLException- if there is an error in the sender or in the element definition.
-
-
Method Details
-
getAttributeValue
ReturnsAttributeValuefrom the Attribute.- Returns:
- A list of DOM Element representing the
AttributeValueblock. - Throws:
SAMLException- If there was an error.
-
addAttributeValue
AddsAttributeValueto the Attribute.- Parameters:
value- A String representingAttributeValue.- Throws:
SAMLException- If there was an error.
-
addAttributeValue
AddsAttributeValueto 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:
toStringin classAttributeDesignator- Returns:
- A string containing the valid XML for this element.
-
toString
Returns a String representation of the<saml:Attribute>element.- Overrides:
toStringin 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
-