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 matchElements,
int matchType)
Constructor that creates a new
TargetMatchGroup based
on the given elements. |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(OutputStream output)
Encodes this
TargetMatchGroup into its XML representation
and writes this encoding to the given OutputStream with no
indentation. |
void |
encode(OutputStream output,
Indenter indenter)
Encodes this
TargetMatchGroup into its XML representation
and writes this encoding to the given OutputStream with
indentation. |
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 matchElements, int matchType)
TargetMatchGroup based
on the given elements.matchElements - a List of TargetMatchmatchType - the match type as defined in TargetMatchpublic 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 void encode(OutputStream output)
TargetMatchGroup into its XML representation
and writes this encoding to the given OutputStream with no
indentation.output - a stream into which the XML-encoded data is writtenpublic void encode(OutputStream output, Indenter indenter)
TargetMatchGroup into its XML representation
and writes this encoding to the given OutputStream with
indentation.output - a stream into which the XML-encoded data is writtenindenter - an object that creates indentation stringsCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.