Package com.sun.identity.saml.assertion
Class Action
- java.lang.Object
 - 
- com.sun.identity.saml.assertion.Action
 
 
- 
@SupportedAll public class Action extends Object
This class is designed forActionelement in SAML core assertion. This element specifies an action on specified resource for which permission is sought. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected String_actionprotected String_namespace 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAction()Gets the action stringStringgetNameSpace()Gets the namespace of ActionStringtoString()Creates a String representation of thesaml:ActionelementStringtoString(boolean includeNS, boolean declareNS)Creates a String representation of thesaml:Actionelement 
 - 
 
- 
- 
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>elementaction- 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 thesaml:Actionelement 
- 
toString
public String toString(boolean includeNS, boolean declareNS)
Creates a String representation of thesaml:Actionelement- Parameters:
 includeNS- : Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- : Determines whether or not the namespace is declared within the Element.- Returns:
 - A string containing the valid XML for this element
 
 
 - 
 
 -