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