org.exist.security.xacml
Class ExistPolicyModule

java.lang.Object
  extended byPolicyFinderModule
      extended byorg.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, Serialized Form

Constructor Summary
ExistPolicyModule(ExistPDP pdp)
          Creates a new ExistPolicyModule.
 
Method Summary
 PolicyFinderResult findPolicy(EvaluationCtx context)
           
 PolicyFinderResult findPolicy(java.net.URI idReference, int type)
           
 void init(PolicyFinder finder)
           
 boolean isIdReferenceSupported()
           
 boolean isRequestSupported()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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()

isIdReferenceSupported

public boolean isIdReferenceSupported()

init

public void init(PolicyFinder finder)

findPolicy

public PolicyFinderResult findPolicy(EvaluationCtx context)

findPolicy

public PolicyFinderResult findPolicy(java.net.URI idReference,
                                     int type)


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.