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()
Targetpublic 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 TargetmetaData - 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 AbstractTargetcontext - the representation of the requestpublic List<AnyOfSelection> getAnyOfSelections()
public String encode()
AbstractTargetAbstractTarget into its XML formencode in class AbstractTargetStringpublic void encode(StringBuilder builder)
AbstractTargetAbstractTarget into its XML form and writes this out to the provided
StringBuilderencode in class AbstractTargetbuilder - string stream into which the XML-encoded data is writtenCopyright © 2021 WSO2. All rights reserved.