Home

Awesome

cedar-java

This repository contains the source code for a Java package CedarJava that supports using the Cedar 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 and CedarJava 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.

cd CedarJava
./gradlew build

Notes

CedarJava requires JDK 17 or later.

Cedar is primarily developed in Rust (in the 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). Unless you plan to build the Rust code locally, please use the latest release/x.x.x branch instead.

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.