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 forAction
element 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
_action
protected String
_namespace
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
Gets the action stringString
getNameSpace()
Gets the namespace of ActionString
toString()
Creates a String representation of thesaml:Action
elementString
toString(boolean includeNS, boolean declareNS)
Creates a String representation of thesaml:Action
element
-
-
-
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:Action
element
-
toString
public String toString(boolean includeNS, boolean declareNS)
Creates a String representation of thesaml:Action
element- 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
-
-