Java SDK

Getting Started

Installing the SDK using Maven (recommended)

add this to your pom.xml file

edit pom.xml file
<dependency>
<groupId>com.secuconnect</groupId>
<artifactId>secuconnect-java-sdk</artifactId>
<version>3.13.0</version>
</dependency>
<repository>
<id>secuconnect-java-sdk-mvn</id>
<url>https://raw.github.com/secuconnect/secuconnect-java-sdk/mvn-repo/</url>
</repository>

and then install in using maven :

Maven install
mvn install

Installing the SDK from downloaded JAR file

We are also providing JAR files with all dependencies, so called fat JARs.

1) Download the secuconnect-java-sdk-3.13.0-shaded.jar from the github repo https://github.com/secuconnect/secuconnect-java-sdk/tree/mvn-repo/com/secuconnect/secuconnect-java-sdk/3.13.0 and store it into the subdirectory "lib" in your project.

2) add this to your pom.xml :

<dependency>
<groupId>com.secuconnect</groupId>
<artifactId>secuconnect-java-sdk</artifactId>
<version>3.13.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/secuconnect-java-sdk-3.13.0-shaded.jar</systemPath>
</dependency>

Live

To switch to the live environment it is necessary to change the urls of the API endpoints:

// Live-Server:
Configuration.getDefaultApiClient().setBasePath("https://connect.secucard.com/api/v2");
Configuration.getDefaultApiClient().setAuthHost("https://connect.secucard.com/");