org.exist.security.xacml
Class ExistPolicyModule
java.lang.Object
com.sun.xacml.finder.PolicyFinderModule
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
ExistPolicyModule
public ExistPolicyModule(ExistPDP pdp)
- Creates a new
ExistPolicyModule
. Retains a reference
to the specified BrokerPool
.
- Parameters:
pdp
- The ExistPDP
for this database instance.
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.