Class AttributeDesignator

java.lang.Object
com.sun.identity.saml.assertion.AttributeDesignator
Direct Known Subclasses:
Attribute

@SupportedAll public class AttributeDesignator extends Object
The AttributeDesignator element identifies an attribute name within an attribute namespace. The element is used in an attribute query to request that attribute values within a specific namespace be returned.
  • Field Details

    • _attributeName

      protected String _attributeName
    • _attributeNameSpace

      protected String _attributeNameSpace
  • Constructor Details

    • AttributeDesignator

      protected AttributeDesignator()
      Default constructor
    • AttributeDesignator

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

      public AttributeDesignator(String name, String nameSpace) throws SAMLException
      Constructs an instance of AttributeDesignator.
      Parameters:
      name - the name of the attribute.
      nameSpace - the namespace in which AttributeName elements are interpreted.
      Throws:
      SAMLException - if there is an error in the sender or in the element definition.
  • Method Details

    • getAttributeName

      public String getAttributeName()
      Returns attribute name from the AttributeDesignator.
      Returns:
      A String representing the attribute name.
    • getAttributeNamespace

      public String getAttributeNamespace()
      Returns attribute name space from the AttributeDesignator.
      Returns:
      A String representing the attribute name space.
    • toString

      public String toString()
      Returns a String representation of the <saml:AttributeDesignator> element.
      Overrides:
      toString in class Object
      Returns:
      A string containing the valid XML for this element.
    • toString

      public String toString(boolean includeNS, boolean declareNS)
      Returns a String representation of the <saml:AttributeDesignator> element.
      Parameters:
      includeNS - Determines whether or not the namespace qualifier is to the Element when converted
      declareNS - Determines whether or not the namespace is declared within the Element.
      Returns:
      A string containing the valid XML for this element.