|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.finder.PolicyFinder
eu.xtreemos.xosd.security.vops.xacml.utils.VOPSPolicyFinder
public class VOPSPolicyFinder
This class is used by the PDP to find all policies used in evaluation. A
PDP is given a pre-configured PolicyFinder
on construction.
The PolicyFinder
provides the functionality both to find
policies based on a request (ie, retrieve policies and match against the
target) and based on an idReference (as can be included in a PolicySet).
While this class is typically used by the PDP, it is intentionally
designed to support stand-alone use, so it could be the base for a
distributed service, or for some application that needs just this
functionality. There is nothing in the PolicyFinder
Note that it is an error to have more than one top-level policy (as
explained in the OnlyOneApplicable combining algorithm), so any module
that is added to this finder will be evaluated each time a policy is
requested. This means that you should think carefully about how many
modules you include, and how they can cache policy data.
Field Summary | |
---|---|
private java.util.Set |
allModules
|
private static java.util.logging.Logger |
logger
|
private java.util.Set |
referenceModules
|
private java.util.Set |
requestModules
|
Constructor Summary | |
---|---|
VOPSPolicyFinder()
|
Method Summary | |
---|---|
com.sun.xacml.finder.PolicyFinderResult |
findPolicy(com.sun.xacml.EvaluationCtx context)
Finds a policy based on a request's context. |
com.sun.xacml.finder.PolicyFinderResult |
findPolicy(java.net.URI idReference,
int type)
Finds a policy based on an id reference. |
java.util.Set |
getModules()
Returns the unordered Set of modules used by this class
to find policies. |
void |
init()
|
void |
setModules(java.util.Set modules)
Sets the unordered Set of modules used by this class
to find policies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Set allModules
private java.util.Set requestModules
private java.util.Set referenceModules
private static final java.util.logging.Logger logger
Constructor Detail |
---|
public VOPSPolicyFinder()
Method Detail |
---|
public java.util.Set getModules()
Set
of modules used by this class
to find policies.
getModules
in class com.sun.xacml.finder.PolicyFinder
public void setModules(java.util.Set modules)
Set
of modules used by this class
to find policies.
setModules
in class com.sun.xacml.finder.PolicyFinder
modules
- the modules this class will usepublic void init()
init
in class com.sun.xacml.finder.PolicyFinder
public com.sun.xacml.finder.PolicyFinderResult findPolicy(com.sun.xacml.EvaluationCtx context)
findPolicy
in class com.sun.xacml.finder.PolicyFinder
context
- the representation of the request data
public com.sun.xacml.finder.PolicyFinderResult findPolicy(java.net.URI idReference, int type) throws java.lang.IllegalArgumentException
findPolicy
in class com.sun.xacml.finder.PolicyFinder
idReference
- the identifier used to resolve a policytype
- type of reference (policy or policySet) as identified by
the fields in PolicyReference
java.lang.IllegalArgumentException
- if type
is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |