Skip to content

Download

Lossy edited this page Jan 4, 2025 · 3 revisions

Currently only snapshot builds are available on Sonatype's snapshot repository.

If you get a java.security.InvalidKeyException: Illegal key size or default parameters exception when trying to encrypt a message you need to download the Unlimited Strength Jurisdiction Policy Files and place them under ${java.home}/jre/lib/security/. See this stackoverflow question.

1. Add the snapshot repository to your build.

Gradle

repositories {
    maven {
        url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
}

Maven

<repository>
  <id>snapshots-repo</id>
  <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>

2. Add the JavaSteam dependency to your project.

Gradle

implementation 'in.dragonbra:javasteam:1.6.0-SNAPSHOT'

Maven

<dependency>
  <groupId>in.dragonbra</groupId>
  <artifactId>javasteam</artifactId>
  <version>1.6.0-SNAPSHOT</version>
</dependency>

3. Add the appropriate cryptography dependency to your project. JavaSteam depends on this.

Gradle (Choose one)

implementation 'org.bouncycastle:bcprov-jdk15on:1.70'  // ANDROID OR NON-ANDROID
implementation 'com.madgag.spongycastle:prov:1.58.0.0' // ANDROID ONLY

Maven (Choose one)

<dependency> <!-- ANDROID OR NON-ANDROID-->
  <groupId>org.bouncycastle</groupId>
  <artifactId>bcprov-jdk15on</artifactId>
  <version>1.70</version>
</dependency>
<dependency> <!-- ANDROID ONLY -->
    <groupId>com.madgag.spongycastle</groupId>
    <artifactId>prov</artifactId>
    <version>1.58.0.0</version>
</dependency>

Or just download the binary files and include them in your project.

Clone this wiki locally