Skip to Content

Java SDK

The VeriProof Java SDK compiles for Java 21. It checks policy before a governed action runs and before its result is released, records session evidence, handles signed human review, and supports cooperative cancellation of an active governed run through a StopToken.

Available packages

PackageCategoryFramework support
com.veriproof:veriproof-sdk-coreCore SDKApplication-owned actions
com.veriproof:veriproof-sdk-adapter-langchain4jEnforce adapterLangChain4j 1.8.0
com.veriproof:veriproof-sdk-adapter-micronautEnforce adapterMicronaut LangChain4j 4.10.22
com.veriproof:veriproof-sdk-adapter-openaiEnforce adapterOpenAI Java 4.37.0
com.veriproof:veriproof-sdk-adapter-quarkus-langchain4jEnforce adapterQuarkus LangChain4j 1.8.0
com.veriproof:veriproof-sdk-adapter-semantic-kernelEnforce adapterSemantic Kernel Java 1.5.0
com.veriproof:veriproof-sdk-adapter-spring-aiEnforce adapterSpring AI 1.0.x

Adapters install their required Core SDK dependency automatically.

What the core package includes

  • Veriproof.fromEnvironment() and Veriproof.configure(apiKey) for one application-scoped, AutoCloseable client.
  • govern(actionName, input, action) and govern(actionName, input, action, GovernOptions) with typed results and a REVIEW_REQUIRED checkpoint.
  • HumanReviewRuntime<I> with save, receive, resume, reconcile, and cancel, plus SqliteHumanReviewStore.
  • Generated industry vocabularies under com.veriproof.sdk.verticals.* with .fact() on each value.
  • VeriproofTestHarness and TestPolicyDecision under com.veriproof.sdk.testing for network-free tests.
  • SensitiveDataSanitizer under com.veriproof.sdk.processing.

Start using the SDK

Open Tools and SDKs in the VeriProof portal, select Java, and follow its installation instructions. Start with com.veriproof:veriproof-sdk-core, then add the adapter for each framework your application uses.

Set the application SDK key as VERIPROOF_API_KEY. Hosted VeriProof uses https://ingest.veriproof.app. VeriProof Private uses the ingest API base URL for that instance as VERIPROOF_ENDPOINT. The same endpoint handles session ingest and policy checks.

Use the Java SDK guide for setup and governed-action examples. Check SDK categories and framework coverage for what each adapter controls and what stays with the core governed-action helper.

Last updated on