-
- public void testListPeerNotes() throws FcpException, IOException {
- List<Map<String, String>> peers = fcpConnection.sendListPeerNotes("AY6rGAGjayoyQD2CkvQibf1Ct3mh6iwqyntzNpfRsiM");
- for (Map<String, String> peer: peers) {
- for (Map.Entry<String, String> entry: peer.entrySet()) {
- System.out.println(entry.getKey() + ": " + entry.getValue());
+
+ /**
+ * Generates an SSK key pair.
+ *
+ * @throws IOException
+ * if an I/O error occurs
+ * @throws InterruptedException
+ * if {@link Object#wait()} wakes up spuriously
+ */
+ public void testGenerateSSK() throws IOException, InterruptedException {
+ final SSKKeypair[] keypair = new SSKKeypair[1];
+ FcpAdapter fcpAdapter = new FcpAdapter() {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void receivedSSKKeypair(FcpConnection fcpConnection, SSKKeypair sskKeypair) {
+ keypair[0] = sskKeypair;
+ synchronized (this) {
+ notify();
+ }