Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com> |
||
|---|---|---|
| gradle/wrapper | ||
| java-spiffe-core | ||
| java-spiffe-helper | ||
| java-spiffe-provider | ||
| .gitignore | ||
| .travis.yml | ||
| LICENSE | ||
| README.md | ||
| build.gradle | ||
| gradlew | ||
| gradlew.bat | ||
| lombok.config | ||
| settings.gradle | ||
README.md
JAVA-SPIFFE library
Supports Java 8+
Overview
The JAVA-SPIFFE library provides functionality to interact with the Workload API to fetch X.509 and JWT SVIDs and Bundles, and a Java Security Provider implementation to be plugged into the Java Security architecture. This is essentially an X.509-SVID based KeyStore and TrustStore implementation that handles the certificates in memory and receives the updates asynchronously from the Workload API. The KeyStore handles the Certificate chain and Private Key to prove identity in a TLS connection, and the TrustStore handles the trusted bundles (supporting federated bundles) and performs peer's certificate and SPIFFE ID verification.
This library contains three modules:
java-spiffe-core: Core functionality to interact with the Workload API, and to process and validate X.509 and JWT SVIDs and bundles.
java-spiffe-provider: Java Provider implementation.
java-spiffe-helper: Helper to store X.509 SVIDs and Bundles in Java Keystores in disk.
Build the JARs
On Linux or MacOS, run:
$ ./gradlew assemble
BUILD SUCCESSFUL
All jar files are placed in build/libs folder.
Based on the OS, the jars will have a different classifier at the end of the jars names:
-linux-x86_64for Linux-osx-x86_64for Mac OS