org.exist.security.xacml
Class ExistPolicyModule

java.lang.Object
  extended by com.sun.xacml.finder.PolicyFinderModule
      extended by org.exist.security.xacml.ExistPolicyModule

public class ExistPolicyModule
extends PolicyFinderModule

This class finds Policy and PolicySet documents located in the /db/system/policies collection. It implements both of the findPolicy methods of PolicyFinderModule. Finding policies by reference uses a range index on PolicySetId and PolicyId, so that must be set up for references to work. Finding policies for a given request is not yet optimized, but just loads all policies in the policies collection, parses them, and determines if they match the request.

See Also:
XACMLConstants

Constructor Summary
ExistPolicyModule(ExistPDP pdp)
          Creates a new ExistPolicyModule.
 
Method Summary
 PolicyFinderResult findPolicy(EvaluationCtx context)
           
 PolicyFinderResult findPolicy(URI idReference, int type)
           
 void init(PolicyFinder finder)
           
 boolean isIdReferenceSupported()
           
 boolean isRequestSupported()
           
 
Methods inherited from class com.sun.xacml.finder.PolicyFinderModule
getIdentifier, invalidateCache
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistPolicyModule

public ExistPolicyModule(ExistPDP pdp)
Creates a new ExistPolicyModule. Retains a reference to the specified BrokerPool.

Parameters:
pdp - The ExistPDP for this database instance.
Method Detail

isRequestSupported

public boolean isRequestSupported()
Overrides:
isRequestSupported in class PolicyFinderModule

isIdReferenceSupported

public boolean isIdReferenceSupported()
Overrides:
isIdReferenceSupported in class PolicyFinderModule

init

public void init(PolicyFinder finder)
Specified by:
init in class PolicyFinderModule

findPolicy

public PolicyFinderResult findPolicy(EvaluationCtx context)
Overrides:
findPolicy in class PolicyFinderModule

findPolicy

public PolicyFinderResult findPolicy(URI idReference,
                                     int type)
Overrides:
findPolicy in class PolicyFinderModule


Copyright (C) Wolfgang Meier. All rights reserved.