|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.AbstractTarget
org.wso2.balana.xacml3.Target
public class Target
Represents the TargetType XML type in XACML 3.0. This extends the AbstractTarget. This also stores several other XML type: AnyOf
Constructor Summary | |
---|---|
Target()
Constructor that creates an XACML 3.0 Target |
|
Target(List<AnyOfSelection> anyOfSelections)
Constructor that creates an XACML 3.0 Target from components. |
Method Summary | |
---|---|
String |
encode()
Encodes this AbstractTarget into its XML form |
void |
encode(StringBuilder builder)
Encodes this AbstractTarget into its XML form and writes this out to the provided
StringBuilder |
List<AnyOfSelection> |
getAnyOfSelections()
|
static Target |
getInstance(Node root,
PolicyMetaData metaData)
Creates a Target by parsing a node. |
MatchResult |
match(EvaluationCtx context)
Determines whether this Target matches the input request (whether it is
applicable). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Target()
Target
public Target(List<AnyOfSelection> anyOfSelections)
Target
from components.
anyOfSelections
- List of AnyOfSelection
objects that
representing the AnyOf sections of this targetMethod Detail |
---|
public static Target getInstance(Node root, PolicyMetaData metaData) throws ParsingException
Target
by parsing a node.
root
- the node to parse for the Target
metaData
- the meta-data associated with the policy
Target
constructed by parsing
ParsingException
- if the DOM node is invalidpublic MatchResult match(EvaluationCtx context)
Target
matches the input request (whether it is
applicable).
match
in class AbstractTarget
context
- the representation of the request
public List<AnyOfSelection> getAnyOfSelections()
public String encode()
AbstractTarget
AbstractTarget
into its XML form
encode
in class AbstractTarget
String
public void encode(StringBuilder builder)
AbstractTarget
AbstractTarget
into its XML form and writes this out to the provided
StringBuilder
- Specified by:
encode
in class AbstractTarget
- Parameters:
builder
- string stream into which the XML-encoded data is written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |