Updating Java Libraries
Note: When the policy is set up on the AI Team Edition, ensure that the same data elements added for the AI Developer Edition are used. For more information about the data elements policy, refer to Policy Definition.
If you use different data elements while creating the policy, then modify the data elements used in the AI Developer Edition accordingly before running the modules.
Install and set up the Protegrity Provisioned Cluster (PPC) and AI Team Edition using the steps from the PPC documentation and the respective feature documentation.
Install Application Protector Java libraries using the steps from the Application Protector Java documentation.
Note: When prompted for the ESA IP address, enter the hostname of the PPC. Similarly, when prompted for the ESA listening port number, enter
25400. This enables the protector to integrate with the PPC.Include the
ApplicationProtectorJava.jarin the classpath of your applications.Navigate to the location where the AI Developer Edition is cloned.
Go to the
protegrity-developer-edition/samples/javadirectory.a. Update the
pom.xmland theapplication-protector-javadependency.``` <dependency> <groupId>com.protegrity</groupId> <artifactId>application-protector-java</artifactId> <version>1.0.1</version> <scope>system</scope> <systemPath>/opt/protegrity/sdk/java/lib/ApplicationProtectorJava.jar</systemPath> </dependency> ```Note: The AP Java libraries are expected to be in the default path
/opt/protegrity/sdk/java/lib/. If the installation uses a different directory, update the environment or configuration so the system can locate the correct JAR files.b. Run the following command.
``` ./mvnw clean package ```c. Update the sample shell script to include
ApplicationProtectorJava.jarin the classpath.d. Run the samples.
Feedback
Was this page helpful?