|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.xacml2.TargetMatchGroup
public class TargetMatchGroup
This class contains a group of TargetMatch
instances and represents the Subject,
Resource, Action, and Environment elements in an XACML Target.
Constructor Summary | |
---|---|
TargetMatchGroup(List<TargetMatch> matchElements,
int matchType)
Constructor that creates a new TargetMatchGroup based on the given elements. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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 policy
TargetMatchGroup
constructed by parsing
ParsingException
- if the DOM node is invalidpublic MatchResult match(EvaluationCtx context)
TargetMatchGroup
matches the input request (whether it
is applicable).
context
- the representation of the request
public String encode()
TargetMatchGroup
into its XML form
String
public void encode(StringBuilder builder)
TargetMatchGroup
into its XML form and writes this out to the provided
StringBuilder
- 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 |