Skip to content
clzander edited this page Apr 5, 2023 · 3 revisions

GUI

This component is part of our SN2 application. You will find a description there (soon).

Starting the GUI

For running the GUI, you need Java 19 as this is the version, with which this project was compiled. When you launch the GUI, you need to set your username and an open port for other peers to connect.

java -jar SharkMessenger.jar

Welcome to SharkMessenger version 0.1
Please enter your username: Alice
Please set the port, on which other peers can connect: 7100
Note that, if you want to run a second instance of the SharkMessenger on the same computer, you must enter a different port, as the port 7100 will be blocked.

Connecting to other peers

In order to connect to another peer use the connect command. You need to specify the port, on which the other peer is listening for connections.

Exchange credentials

The current version of the messenger isn't supporting automatic credential exchange. However, you can manually exchange and sign credentials in the following way:

  1. You need to be connected to the other peer. See the chapter Connecting to other peers on this page for more details.
  2. Enter the sendCred command and fill in all the parameters. This should be done by both parties. You should see the credentials on your screen.
  3. The last step is to sign the credentials. Before you do so, please make absolutely sure, that the credentials you received are from the person you think they send them to you. When you are convinced of the identity of the other peer, use the signCred command to accept the received credentials.

Send a message

Clone this wiki locally