Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Data Theorem API Protect Java SDK is a Java library that provides protection for APIs written in Java. The SDK integrates with your Java application using the API Protect Servlet Filter which supports most popular Java Web Servers. To Protect an API, all the API developer needs to do is add the API Protect Servlet Filter to their web application code and set the client ID we provide.

Installation

Step 1: Install the apiProtectSdk.jar and Add the package to dependencies

Install the apiProtectSdk.jar to your local maven repository

Code Block
languagebash
mvn install:install-file -Dfile=apiProtectSdk.jar -DgroupId=com.datatheorem -DartifactId=apiProtectSdk -Dversion=1.2.3 -Dpackaging=jar

To install API Protect the provided JAR file must be added as a dependency, in case of using Maven to the pom.xml file. Here is an example of how to add the package:

...

Code Block
languagebash
<dependencies>
		<!--  ... other deps here ... -->

		<dependency>
			
            <groupId>com.datatheorem</groupId>
			
            <artifactId>apiProtectSdk</artifactId>
			<systemPath>{PROJECT_DIR}/{PATH_TO_SDK}/apiProtectSdk.jar</systemPath>
			<version>1.0-SNAPSHOT</version>
			<scope>system</scope>
            <version>1.2.3</version>
		</dependency>
	</dependencies>

...