From cb7937f5c6a6677d52efed7caef935dc2e397157 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Mon, 25 Jul 2022 23:08:13 -0300 Subject: Finish world key machinery API Still need to implement the actual functionality. --- src/main/java/ganarchy/friendcode/client/I2PSamPinger.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/ganarchy/friendcode/client/I2PSamPinger.java') diff --git a/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java b/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java index e0824b9..9bc46e2 100644 --- a/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java +++ b/src/main/java/ganarchy/friendcode/client/I2PSamPinger.java @@ -95,7 +95,7 @@ public class I2PSamPinger extends LanServerPinger implements LanSendPing { return this.status; } - public String pubkey() { + public String publicKey() { return this.sam.publicKey(); } @@ -103,6 +103,10 @@ public class I2PSamPinger extends LanServerPinger implements LanSendPing { this.stopSam = true; } + public String privateKey() { + return this.sam.privateKey(); + } + public enum Status { IDLE, RUNNING, -- cgit 1.4.1