SDK for using IronCore Labs from your Java server side applications. This library is a thin Rust shim that wraps the Rust SDK and uses the Rust Swig toolset to generate JNI bindings to make it callable from the JVM.
Prerequisites:
- Rust toolchain installed
JAVA_HOME
environment variable setclang
installed
From the root of this repository run cargo build
. The resulting java
directory will have the JNI binding code for the Java side and target/debug
or target/release
will have the dynamic library file you need to pull into your Java code. It will be libironoxide_java.so
or libironoxide_java.dylib
depending on your environment. This library will only work on the architecture from which it was built.
This binary should be placed in your Java library path and can then be loaded by calling
java.lang.System.loadLibrary("ironoxide_java")
Then all of the SDK classes can be imported from the com.ironcorelabs.sdk
namespace.
Copyright (c) 2017-present IronCore Labs, Inc. All rights reserved.