Comments (2)
StaticTopLevelPolicyElementEvaluator is a very generic interface for a policy evaluator. The PolicyEvaluators#getInstance(...) methods are just some convenient ways to create such type of object from a XACML/XML-schema-derived Policy(Set), parsed with JAXB framework. If you indeed use XML/JAXB classes as input, then yes, it is a good idea to reuse PolicyEvaluators helper class; and in this case you can just replace core-pdp-api with core-pdp-engine as dependency in your POM, because core-pdp-engine already depends on core-pdp-api.
If you don't use XACML literally (you may use a JSON variant of your own or some kind of simplified policy format for convenience), or you are not using JAXB for XML-to-Java mapping, it may not be a good idea (not efficient) to use PolicyEvaluators as is.
In any case, you do not have to use PolicyEvaluators in all cases (it is just a helper class), and core-pdp-api is just the minimum required dependency to implement a PolicyProvider.
from core.
thanks for answer. this helper class helps a lot. i'm going to reuse it.
from core.
Related Issues (20)
- Test failed on authzforce-ce-core-pdp-testutils module version 17.0.0 HOT 1
- Compilation failure due to XacmlJsonUtils.canonicalizeResponse method signature issue HOT 1
- Use latest parent version to benefit from dependency-check-maven fix
- Implementation help HOT 8
- org.ow2.authzforce.core.pdp.testutil.ext.xsd MongoDBPolicyProvider ServerHost Pattern HOT 2
- Question about Evaluating Requests in XACML/JSON format HOT 4
- Support XACML <VariableRef> in <Match> via AttributeDesignator workaround
- Refactor BasePdpEngine - Move the StandardEnvironmentAttribute* code to dedicated AttributeProvider
- Mutli requests in the use of CLI HOT 2
- Issue in building the project using cmd HOT 3
- Enable PDP extensions (e.g. Functions) to return an error about invalid attribute values in form of XACML <StatusDetail> / <MissingAttributeDetail>s HOT 3
- org.ow2.authzforce.domains.xacmlJsonSchemaRelativePath has no effect HOT 1
- clientRequestErrorVerbosityLevel > 0 throws startup exception HOT 1
- ConditionEvaluators.java -> throwing exception when conditional evaluates to false.
- The permit-unless-deny in policySet and policy produce an error HOT 3
- Is it possible to bound a jaxb scope for authzforce HOT 3
- Timeline for migrating the javax namespace HOT 2
- Migrate to Java 17+
- Deny-overrides rule combining algorithm - Missing obligations in case of multiple Permit Rules and no Deny Rule HOT 1
- Comparison by issuer even if it is not defined in AttributeDesignator HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.