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
| Package | Category | Framework support |
|---|---|---|
com.veriproof:veriproof-sdk-core | Core SDK | Application-owned actions |
com.veriproof:veriproof-sdk-adapter-langchain4j | Enforce adapter | LangChain4j 1.8.0 |
com.veriproof:veriproof-sdk-adapter-micronaut | Enforce adapter | Micronaut LangChain4j 4.10.22 |
com.veriproof:veriproof-sdk-adapter-openai | Enforce adapter | OpenAI Java 4.37.0 |
com.veriproof:veriproof-sdk-adapter-quarkus-langchain4j | Enforce adapter | Quarkus LangChain4j 1.8.0 |
com.veriproof:veriproof-sdk-adapter-semantic-kernel | Enforce adapter | Semantic Kernel Java 1.5.0 |
com.veriproof:veriproof-sdk-adapter-spring-ai | Enforce adapter | Spring AI 1.0.x |
Adapters install their required Core SDK dependency automatically.
What the core package includes
Veriproof.fromEnvironment()andVeriproof.configure(apiKey)for one application-scoped,AutoCloseableclient.govern(actionName, input, action)andgovern(actionName, input, action, GovernOptions)with typed results and aREVIEW_REQUIREDcheckpoint.HumanReviewRuntime<I>withsave,receive,resume,reconcile, andcancel, plusSqliteHumanReviewStore.- Generated industry vocabularies under
com.veriproof.sdk.verticals.*with.fact()on each value. VeriproofTestHarnessandTestPolicyDecisionundercom.veriproof.sdk.testingfor network-free tests.SensitiveDataSanitizerundercom.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.