Skip to main content

Prerequisites

Set SILMARIL_API_KEY and SILMARIL_API_URL from your deployment access.

Install

Confirm Java package availability and repository configuration with Silmaril before adding this dependency.
Gradle

Classify your first request

Create one client per protected system and reuse it. Label each call with the boundary it checks.
For tool output, pass the tool name as well.

Expected result

A benign request prints prediction=BENIGN. In enforcement mode, a block throws FirewallBlockedException. Any other exception means the call did not produce a verdict. Decide whether that boundary fails open or closed. Outcome meanings and recommended actions are in the outcome taxonomy.

Shadow mode

Shadow mode returns results instead of throwing block exceptions, so you can measure would-block decisions while traffic continues. Per-call options can enforce one boundary before you change the client default.
The classify call passes shadowMode(false), so that call enforces.

Errors

Enforced blocks throw FirewallBlockedException, which exposes score() and threshold().
options is the ClassifyOptions value for that boundary. Outcome meanings and recommended actions are in the outcome taxonomy.