JBoss port of sunxacml 2.0.5

org.jboss.security.xacml.sunxacml
Class TargetMatchGroup

java.lang.Object
  extended by org.jboss.security.xacml.sunxacml.TargetMatchGroup

public class TargetMatchGroup
extends Object

This class contains a group of TargetMatch instances and represents the Subject, Resource, Action, and Environment elements in an XACML Target.

Since:
2.0
Author:
Seth Proctor

Constructor Summary
TargetMatchGroup(List matchElements, int matchType)
          Constructor that creates a new TargetMatchGroup based on the given elements.
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetMatchGroup

public TargetMatchGroup(List matchElements,
                        int matchType)
Constructor that creates a new TargetMatchGroup based on the given elements.

Parameters:
matchElements - a List of TargetMatch
matchType - the match type as defined in TargetMatch
Method Detail

getInstance

public static TargetMatchGroup getInstance(Node root,
                                           int matchType,
                                           PolicyMetaData metaData)
                                    throws ParsingException
Creates a Target based on its DOM node.

Parameters:
root - the node to parse for the target group
matchType - the type of the match
metaData - meta-date associated with the policy
Returns:
a new TargetMatchGroup constructed by parsing
Throws:
ParsingException - if the DOM node is invalid

match

public MatchResult match(EvaluationCtx context)
Determines whether this TargetMatchGroup matches the input request (whether it is applicable).

Parameters:
context - the representation of the request
Returns:
the result of trying to match the group with the context

encode

public void encode(OutputStream output)
Encodes this TargetMatchGroup into its XML representation and writes this encoding to the given OutputStream with no indentation.

Parameters:
output - a stream into which the XML-encoded data is written

encode

public void encode(OutputStream output,
                   Indenter indenter)
Encodes this TargetMatchGroup into its XML representation and writes this encoding to the given OutputStream with indentation.

Parameters:
output - a stream into which the XML-encoded data is written
indenter - an object that creates indentation strings

JBoss port of sunxacml 2.0.5

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.