Initialize BcSopCLI

This commit is contained in:
Paul Schaub 2024-11-15 01:38:08 +01:00
parent 1d697eb682
commit 1af2a3c121
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 19 additions and 8 deletions

View file

@ -27,6 +27,10 @@
<groupId>org.pgpainless</groupId>
<artifactId>sop-java-picocli</artifactId>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
</dependency>
</dependencies>
</project>

View file

@ -0,0 +1,14 @@
package org.pgpainless;
import org.pgpainless.bouncycastle.sop.BouncyCastleSOP;
import sop.cli.picocli.SopCLI;
public class BcSopCLI {
public static void main(String[] args) {
SopCLI.EXECUTABLE_NAME = "bc-sop";
SopCLI.setSopInstance(new BouncyCastleSOP());
int exitCode = SopCLI.execute(args);
System.exit(exitCode);
}
}

View file

@ -1,7 +0,0 @@
package org.pgpainless;
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

View file

@ -11,7 +11,7 @@ public class BCVersion implements Version {
@NotNull
@Override
public String getBackendVersion() {
return "Bouncy Castle 1.79"; // TODO: Extract from pom
return "Bouncy Castle " + new BouncyCastleProvider().getVersionStr();
}
@NotNull