Prerequisites
SetSILMARIL_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.Expected result
A benign request printsprediction=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.shadowMode(false), so that call enforces.
Errors
Enforced blocks throwFirewallBlockedException, which exposes score() and threshold().
options is the ClassifyOptions value for that boundary. Outcome meanings and recommended actions are in the outcome taxonomy.