Class Action


  • @SupportedAll
    public class Action
    extends Object
    This class is designed for Action element in SAML core assertion. This element specifies an action on specified resource for which permission is sought.
    • Field Detail

      • _action

        protected String _action
      • _namespace

        protected String _namespace
    • Constructor Detail

      • Action

        public Action​(Element element)
               throws SAMLException
        Constructs an action element from an existing XML block.
        Parameters:
        element - representing a DOM tree element.
        Throws:
        SAMLException - f there is an error in the sender or in the element definition.
      • Action

        public Action​(String namespace,
                      String action)
               throws SAMLException
        Convenience constructor of <Action>
        Parameters:
        namespace - The attribute "namespace" of <Action> element
        action - A String representing an action
        Throws:
        SAMLException - if there is an error in the sender or in the element definition.
    • Method Detail

      • getAction

        public String getAction()
        Gets the action string
        Returns:
        A String representing the action
      • getNameSpace

        public String getNameSpace()
        Gets the namespace of Action
        Returns:
        A String representing the name space of the action
      • toString

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

        public String toString​(boolean includeNS,
                               boolean declareNS)
        Creates a String representation of the saml:Action element
        Parameters:
        includeNS - : Determines whether or not the namespace qualifier is prepended 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