SDK prerequisites
The following prerequisites must be met before using the Add-on SDK for Java.
Before you start, ensure you have the Java SDK and Apache Maven installed. The samples use Apache Maven and assume that the PingAccess SDK can be referenced as a dependency. They reference Ping Identity’s public Maven repository, located at: http://maven.pingidentity.com/release
.
The Ping Identity Maven repository cannot be accessed through a browser because it is designed solely for backend use. To use it, add it to your Maven configuration. For example, including this code in the Maven <repositories> <repository> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <id>PingIdentityMaven</id> <name>PingIdentity Release</name> <url>http://maven.pingidentity.com/release/</url> <layout>default</layout> </repository> </repositories> |
If Internet access is unavailable, update the pingaccess-sdk
dependency in your pom.xml
to point to the local installation.
Replace PA_HOME with the path to the PingAccess installation.
<dependency> <groupId>com.pingidentity.pingaccess</groupId> <artifactId>pingaccess-sdk</artifactId> <version>4.0.1.3</version> <scope>system</scope> <systemPath>PA_HOME/lib/pingaccess-sdk-4.2.0.0.jar</systemPath> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.0.0.GA</version> <scope>system</scope> <systemPath>PA_HOME/lib/validation-api-1.0.0.GA.jar</systemPath> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.4</version> <scope>system</scope> <systemPath>PA_HOME/lib/slf4j-api-1.7.4.jar</systemPath> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.4</version> <scope>system</scope> <systemPath>PA_HOME/lib/slf4j-log4j12-1.7.4.jar</systemPath> </dependency>