You can learn how to install the Java Enforcer with this article.
The Java Enforcer is published as two Maven artifacts. Both share the same version number and public API (com.perimeterx.*); choose the artifact that matches your servlet namespace and application server.
perimeterx-sdk (javax): JDK 1.7 or higherperimeterx-sdk-jakarta: JDK 17 or higher (required by Jakarta Servlet 6/Spring Boot 3).Unlimited Strength Jurisdiction Policy errors on startup. This is enabled by default in Java version 9 and later.Use this artifact for Spring Boot 2.x, Tomcat 9 and earlier, and other stacks that still use the javax.servlet namespace.
Create a filter that intercepts all incoming requests and verifies them with HUMAN. Be sure to include your HUMAN Application ID, Server Token, and Cookie Key.
You only need to include the responseWrapper section found at the end of the code example if you use Credentials Intelligence.