java.lang.Object
com.sun.xml.wss.saml.internal.saml20.jaxb20.AttributeType
com.sun.xml.wss.saml.assertion.saml20.jaxb20.Attribute
All Implemented Interfaces:
Attribute

public class Attribute extends AttributeType implements Attribute
The Attribute element specifies an attribute of the assertion subject. The Attribute element is an extension of the AttributeDesignator element that allows the attribute value to be specified.
  • Field Details

    • log

      protected static final Logger log
  • Constructor Details

    • Attribute

      public Attribute(String name, List values)
      Constructs an instance of Attribute.
      Parameters:
      name - A String representing AttributeName (the name of the attribute).
      values - A List of DOM element representing the AttributeValue object.
    • Attribute

      public Attribute(String name, String nameFormat, List values)
    • Attribute

      public Attribute(AttributeType attType)
  • Method Details

    • fromElement

      public static AttributeType fromElement(Element element) throws SAMLException
      Constructs an attribute element from an existing XML block.
      Parameters:
      element - representing a DOM tree element.
      Throws:
      SAMLException - if there is an error in the sender or in the element definition.
    • getAttributes

      public List<Object> getAttributes()
      Description copied from interface: Attribute
      Gets the value of the attributeValue property.

      Objects of the following type(s) are allowed in the list Object

      Specified by:
      getAttributes in interface Attribute