public class TargetMatchGroup extends Object
TargetMatch
instances and represents the Subject,
Resource, Action, and Environment elements in an XACML Target.Constructor and Description |
---|
TargetMatchGroup(List<TargetMatch> matchElements,
int matchType)
Constructor that creates a new
TargetMatchGroup based on the given elements. |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes this
TargetMatchGroup into its XML form |
void |
encode(StringBuilder builder)
Encodes this
TargetMatchGroup into its XML form and writes this out to the provided
StringBuilder |
static TargetMatchGroup |
getInstance(Node root,
int matchType,
PolicyMetaData metaData)
Creates a
Target based on its DOM node. |
MatchResult |
match(EvaluationCtx context)
Determines whether this
TargetMatchGroup matches the input request (whether it
is applicable). |
public TargetMatchGroup(List<TargetMatch> matchElements, int matchType)
TargetMatchGroup
based on the given elements.matchElements
- a List
of TargetMatch
matchType
- the match type as defined in TargetMatch
public static TargetMatchGroup getInstance(Node root, int matchType, PolicyMetaData metaData) throws ParsingException
Target
based on its DOM node.root
- the node to parse for the target groupmatchType
- the type of the matchmetaData
- meta-date associated with the policyTargetMatchGroup
constructed by parsingParsingException
- if the DOM node is invalidpublic MatchResult match(EvaluationCtx context)
TargetMatchGroup
matches the input request (whether it
is applicable).context
- the representation of the requestpublic String encode()
TargetMatchGroup
into its XML formString
public void encode(StringBuilder builder)
TargetMatchGroup
into its XML form and writes this out to the provided
StringBuilder
builder
- string stream into which the XML-encoded data is writtenCopyright © 2020 WSO2. All rights reserved.