com.tivoli.am.fim.trustserver.sts.uuser
Class AttributeStatement

java.lang.Object
  extended by com.tivoli.am.fim.trustserver.sts.uuser.AttributeContainer
      extended by 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.


Field Summary
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
AttributeStatement()
          Construct an empty AttributeStatement
AttributeStatement(Attribute[] attributes)
          Construct an AttributeStatement with an array of Attributes
 
Method Summary
 void addAttribute(Attribute attr)
          Adds the given Attribute to the list of attributes.
protected  void addAttributeElements(org.w3c.dom.Element container)
           
static AttributeStatement fromXml(org.w3c.dom.Element element)
          Converts XML (in the form of an org.w3c.dom.Element object) into an AttributeStatement.
protected  java.lang.String getElementName()
          Used when transforming between xml and object.
 java.lang.String getId()
          Returns the id of this AttributeStatement.
 Subject getSubject()
          getSubject Retrieves the optional Subject for this AttributeStatement or null
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
See Also:
Constant Field Values
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

getElementName

protected java.lang.String getElementName()
Description copied from class: AttributeContainer
Used when transforming between xml and object.

Specified by:
getElementName in class AttributeContainer
Returns:
The element name.

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).

addAttributeElements

protected void addAttributeElements(org.w3c.dom.Element container)
Overrides:
addAttributeElements in class AttributeContainer

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.