Class AttributeStatement
java.lang.Object
com.tivoli.am.fim.trustserver.sts.uuser.AttributeContainer
com.tivoli.am.fim.trustserver.sts.uuser.AttributeStatement
Represents the AttributeStatement which is a container of attributes. This
object is applicable to SAML token modules only.
- Version:
- @VERSION@
-
Field Summary
Fields inherited from class com.tivoli.am.fim.trustserver.sts.uuser.AttributeContainer
AttributeContainer_java_copyright, AttributeContainer_java_sourceCodeID
-
Constructor Summary
ConstructorDescriptionConstruct an empty AttributeStatementAttributeStatement
(Attribute[] attributes) Construct an AttributeStatement with an array of Attributes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(Attribute attr) Adds the given Attribute to the list of attributes.static AttributeStatement
Converts XML (in the form of an org.w3c.dom.Element object) into an AttributeStatement.final String
getId()
Returns the id of this AttributeStatement.getSubject Retrieves the optional Subject for this AttributeStatement or nullfinal void
Sets the id of this AttributeStatement.void
setSubject
(Subject subj) setSubject Sets the Subject for this AttributeStatement.Methods inherited from class com.tivoli.am.fim.trustserver.sts.uuser.AttributeContainer
attributesFromXml, clear, getAttributeByName, getAttributeByNameAndType, getAttributeIterator, getAttributes, getAttributesByType, getAttributeValueByName, getAttributeValueByNameAndType, getAttributeValuesByName, getAttributeValuesByNameAndType, getNumberOfAttributes, removeAttribute, removeAttributeByNameAndType, removeAttributes, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributes, toXml
-
Field Details
-
AttributeStatement_java_sourceCodeID
- See Also:
-
AttributeStatement_java_copyright
- See Also:
-
-
Constructor Details
-
AttributeStatement
public AttributeStatement()Construct an empty AttributeStatement -
AttributeStatement
Construct an AttributeStatement with an array of Attributes- Parameters:
attributes
- ana array of Attributes for this AttributeStatement.
-
-
Method Details
-
fromXml
Converts XML (in the form of an org.w3c.dom.Element object) into an AttributeStatement.- Parameters:
element
- the org.w3c.dom.Element from which an AttributeStatement will be created.- Returns:
- an AttributeStatemenet created from XML (in the form of an org.w3c.dom.Element object).
-
getSubject
getSubject Retrieves the optional Subject for this AttributeStatement or null- Returns:
- Subject or null
-
setSubject
setSubject Sets the Subject for this AttributeStatement. This is only used by SAML 1.x and is ignored for all other cases.- Parameters:
subj
- the Subject for this AttributeStatement.
-
addAttribute
Adds the given Attribute to the list of attributes. The name of the Attribute must not be null, if null the Attribute is not added to the list.- Parameters:
attr
- Attribute to add to the list of attributes.
-
getId
Returns the id of this AttributeStatement.- Returns:
- the id of this AttributeStatement.
-
setId
Sets the id of this AttributeStatement.- Parameters:
id
- the id of this AttributeStatement.
-