2026-04-21 17:24:11 +02:00
|
|
|
package ai.nomyo;
|
|
|
|
|
|
2026-04-23 19:22:01 +02:00
|
|
|
import java.util.concurrent.ExecutionException;
|
2026-04-21 17:24:11 +02:00
|
|
|
|
|
|
|
|
/**
|
2026-04-23 13:36:46 +02:00
|
|
|
* Entry point — loads RSA keys and validates key length.
|
2026-04-21 17:24:11 +02:00
|
|
|
*/
|
|
|
|
|
public class Main {
|
|
|
|
|
|
|
|
|
|
static void main() {
|
|
|
|
|
SecureCompletionClient secureCompletionClient = new SecureCompletionClient();
|
|
|
|
|
//secureCompletionClient.generateKeys(true, "client_keys", "pokemon");
|
2026-04-23 19:22:01 +02:00
|
|
|
//secureCompletionClient.loadKeys("client_keys/private_key.pem", "pokemon");
|
|
|
|
|
|
2026-04-21 17:24:11 +02:00
|
|
|
|
|
|
|
|
try {
|
2026-04-23 19:22:01 +02:00
|
|
|
System.out.println(secureCompletionClient.fetchServerPublicKey().get());
|
|
|
|
|
} catch (InterruptedException | ExecutionException e) {
|
|
|
|
|
throw new RuntimeException(e);
|
2026-04-21 17:24:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|