Class AttributeStatement
- java.lang.Object
-
- com.tivoli.am.fim.trustserver.sts.uuser.AttributeContainer
-
- com.tivoli.am.fim.trustserver.sts.uuser.AttributeStatement
-
public class AttributeStatement extends AttributeContainer
Represents the AttributeStatement which is a container of attributes. This object is applicable to SAML token modules only.- Version:
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AttributeStatement_java_copyright
static java.lang.String
AttributeStatement_java_sourceCodeID
-
Fields inherited from class com.tivoli.am.fim.trustserver.sts.uuser.AttributeContainer
AttributeContainer_java_copyright, AttributeContainer_java_sourceCodeID
-
-
Constructor Summary
Constructors Constructor Description AttributeStatement()
Construct an empty AttributeStatementAttributeStatement(Attribute[] attributes)
Construct an AttributeStatement with an array of Attributes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(Attribute attr)
Adds the given Attribute to the list of attributes.static AttributeStatement
fromXml(org.w3c.dom.Element element)
Converts XML (in the form of an org.w3c.dom.Element object) into an AttributeStatement.java.lang.String
getId()
Returns the id of this AttributeStatement.Subject
getSubject()
getSubject Retrieves the optional Subject for this AttributeStatement or nullvoid
setId(java.lang.String id)
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 Detail
-
AttributeStatement_java_sourceCodeID
public static final java.lang.String AttributeStatement_java_sourceCodeID
- See Also:
- Constant Field Values
-
AttributeStatement_java_copyright
public static final java.lang.String AttributeStatement_java_copyright
-
-
Constructor Detail
-
AttributeStatement
public AttributeStatement()
Construct an empty AttributeStatement
-
AttributeStatement
public AttributeStatement(Attribute[] attributes)
Construct an AttributeStatement with an array of Attributes- Parameters:
attributes
- ana array of Attributes for this AttributeStatement.
-
-
Method Detail
-
fromXml
public static AttributeStatement fromXml(org.w3c.dom.Element element)
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
public Subject getSubject()
getSubject Retrieves the optional Subject for this AttributeStatement or null- Returns:
- Subject or null
-
setSubject
public void setSubject(Subject subj)
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
public void addAttribute(Attribute attr)
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
public final java.lang.String getId()
Returns the id of this AttributeStatement.- Returns:
- the id of this AttributeStatement.
-
setId
public final void setId(java.lang.String id)
Sets the id of this AttributeStatement.- Parameters:
id
- the id of this AttributeStatement.
-
-