REST APIs
This section describes how to make vaultless tokenization REST APIs work with CXF jar and Apache Tomcat server.
Prerequisites
Apache Tomcat 9.0 or higher version and its compatible Java version (8 or higher) are installed.
The
CATALINA_HOMEpath is set for Apache Tomcat.Download and extract
CADP_for_JAVA_Webservices_vx.xx.xfrom the support portal.Copy
tmrestVaultless.warfromCADP_for_JAVA_Webservicesdirectory to the%CATALINA_HOME%/webappsdirectory.Ensure the following jar files are specified in the CLASSPATH.
SafeNetVaultlessTokenization-8.10.0.000.jar
commons-collections4-4.4.jar
commons-lang3-3.12.0.jar
gson-2.10.1.jar
log4j-api-2.19.0.jar
log4j-core-2.19.0.jar
CADP_for_JAVA-8.18.0.001.jar
Note
To deploy
tmrestVaultless.waron Apache Tomcat version 10.1.x, follow the steps mentioned below:Download and extract Tomcat Migration Tool from here.
Navigate to
libdirectory of the downloaded zip file.Execute the following command in the terminal:
java -jar jakartaee-migration-*.jar <source> <destination>where source is the complete path of current
tmrestVaultless.warfile and the destination will be the complete path of migrated war file.For example,
java -jar jakartaee-migration-*.jar tmrestVaultless.war migrated/tmrestVaultless.warPlace the migrated
tmrestVaultless.warfile in the webapps folder of Tomcat.Run the startup batch file placed in the
bindirectory of Apache 10.1.x.
When using Java version 10 or 11, download the files
javax.activation-1.2.0.jarandjaxb-api-2.2.3.jarand add them in the CLASSPATH.Deploy vaultless tokenization on HTTPS Server.
Note
SVT REST APIs only work with HTTPS.