public class Target extends AbstractTarget
Constructor and Description |
---|
Target()
Constructor that creates an XACML 3.0
Target |
Target(List<AnyOfSelection> anyOfSelections)
Constructor that creates an XACML 3.0
Target from components. |
Modifier and Type | Method and Description |
---|---|
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). |
public Target()
Target
public Target(List<AnyOfSelection> anyOfSelections)
Target
from components.anyOfSelections
- List of AnyOfSelection
objects that
representing the AnyOf sections of this targetpublic 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 policyTarget
constructed by parsingParsingException
- 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 requestpublic List<AnyOfSelection> getAnyOfSelections()
public String encode()
AbstractTarget
AbstractTarget
into its XML formencode
in class AbstractTarget
String
public void encode(StringBuilder builder)
AbstractTarget
AbstractTarget
into its XML form and writes this out to the provided
StringBuilder
encode
in class AbstractTarget
builder
- string stream into which the XML-encoded data is writtenCopyright © 2021 WSO2. All rights reserved.