Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedar-policy/cedar-java
Java bindings for the Cedar language
https://github.com/cedar-policy/cedar-java
Last synced: about 2 months ago
JSON representation
Java bindings for the Cedar language
- Host: GitHub
- URL: https://github.com/cedar-policy/cedar-java
- Owner: cedar-policy
- License: apache-2.0
- Created: 2023-04-25T18:22:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-18T17:51:02.000Z (2 months ago)
- Last Synced: 2024-07-19T00:08:22.291Z (2 months ago)
- Language: Java
- Homepage: https://www.cedarpolicy.com
- Size: 479 KB
- Stars: 35
- Watchers: 10
- Forks: 16
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- cedar-awesome - Java bindings
README
# cedar-java
This repository contains the source code for a Java package `CedarJava` that supports using the [Cedar](https://www.cedarpolicy.com) policy language.
It also contains source code for a Rust crate `CedarJavaFFI` that enables calling Cedar library functions (written in Rust) from Java.## Getting Started
The [CedarJavaFFI](https://github.com/cedar-policy/cedar-java/blob/main/CedarJavaFFI/README.md) and [CedarJava](https://github.com/cedar-policy/cedar-java/blob/main/CedarJava/README.md) directories contain detailed instructions on building individual modules.
The `CedarJava` module uses Gradle to build both modules and run integration tests. The following commands provide general usage for getting started.
```shell
cd CedarJava
./gradlew build
```## Notes
`CedarJava` requires JDK 17 or later.
Cedar is primarily developed in Rust (in the [cedar](https://github.com/cedar-policy/cedar) repository). As such, `CedarJava` typically lags behind the newest Cedar features. Notably, as of this writing, `CedarJava` does not expose APIs for partial evaluation.
The `main` branch of this repository is kept up-to-date with the development version of the Rust code (available in the `main` branch of [cedar](https://github.com/cedar-policy/cedar)). Unless you plan to build the Rust code locally, please use the latest `release/x.x.x` branch instead.
## Security
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
## License
This project is licensed under the Apache-2.0 License.