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:
@VERSION@
  • Field Details

  • Constructor Details

    • 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 Details

    • fromXml

      public static AttributeStatement fromXml(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 String getId()
      Returns the id of this AttributeStatement.
      Returns:
      the id of this AttributeStatement.
    • setId

      public final void setId(String id)
      Sets the id of this AttributeStatement.
      Parameters:
      id - the id of this AttributeStatement.