* refactoring

Signed-off-by: CubeBit <denis-seredenko@ukr.net>
This commit is contained in:
2023-08-02 14:29:56 +02:00
parent 251532493f
commit fe3a0820cf
7 changed files with 57 additions and 33 deletions

View File

@@ -13,11 +13,11 @@ import java.util.Scanner;
public class Client {
public static KeyPair keys;
static KeyPair keys;
public static PublicKey serverPublicRSA;
static PublicKey serverPublicRSA;
public static SecretKey aesKey;
static SecretKey aesKey;
public static void main(String[] args) throws Exception {
Map<String, String> validatedArguments = getValidatedDataFromArguments(args);

View File

@@ -22,9 +22,9 @@ public class ClientThread implements Runnable {
final PrintWriter out;
public boolean rsaReceived = false;
boolean rsaReceived = false;
public boolean aesReceived = false;
boolean aesReceived = false;
public ClientThread(Socket socket) throws IOException {
this.clientSocket = socket;