https://github.com/authzforce/rest-api-model
Generic REST API model for Authorization PDPs
https://github.com/authzforce/rest-api-model
fast-infoset json rest-api restful-api wadl xacml xml
Last synced: 22 days ago
JSON representation
Generic REST API model for Authorization PDPs
- Host: GitHub
- URL: https://github.com/authzforce/rest-api-model
- Owner: authzforce
- License: apache-2.0
- Created: 2015-12-07T11:10:44.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-02-04T03:44:20.000Z (about 1 year ago)
- Last Synced: 2025-04-13T13:07:07.613Z (22 days ago)
- Topics: fast-infoset, json, rest-api, restful-api, wadl, xacml, xml
- Language: Java
- Size: 176 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://javadoc.io/doc/org.ow2.authzforce/authzforce-ce-rest-api-model)
This package includes a sample client code that shows how to to send a XACML request to the AuthzForce PDP API. This code is in the test class `org.ow2.authzforce.rest.api.test` in `src/test/java`.
If you are accessing an Authorization PDP implementation such as AuthzForce Server over SSL (HTTPS), configure the keystore (resp. truststore) location and password in configuration element `keyManagers` (resp. `trustManagers`) in file `src/test/resources/cxfClient.xml`. The keystore is the one that contains your own private key and the certificate that you use to authenticate to the server. The truststore is in `src/test/resources`, you may have to change to an absolute path for the truststore location, depending on where you execute the code from.
Now, you should be able to compile and run the `main()` of the AzClient class mentioned previously. If you are using an IDE such as Eclipse, you can import the project as Maven project (requires Eclipse maven plugin installed), right-click on the new project > Run as > maven generate-sources, configure the keystore as above, right-click on the AzClient.java and "Run as" > "Java Application".