diff --git a/app/src/main/java/lightcontainer/App.java b/app/src/main/java/lightcontainer/App.java index 2379664..ef8ecba 100644 --- a/app/src/main/java/lightcontainer/App.java +++ b/app/src/main/java/lightcontainer/App.java @@ -13,6 +13,8 @@ import lightcontainer.repository.FileFrontEnd; import lightcontainer.repository.ProtocolRepositoryImpl; import lightcontainer.repository.StoreProcessorRepository; +import java.io.File; + public class App { // Constant config server // -- Unicast client port @@ -52,11 +54,12 @@ public class App { */ public static void main(String[] args) throws InterruptedException { + setupVM(); + // Create all repository ClientHandlerRepository clientRep = new ClientHandlerRepository(); StoreProcessorRepository storeRep = new StoreProcessorRepository(); ProtocolRepository protocolRep = new ProtocolRepositoryImpl(); - protocolRep.addReader(new HelloRule()); protocolRep.addReader(new SigninRule(protocolRep)); protocolRep.addReader(new FilelistRule(protocolRep)); @@ -83,4 +86,10 @@ public class App { // storeRep.close(); } + private static void setupVM() { + System.setProperty("javax.net.ssl.keyStore","../ffe.labo.swilabus.com.p12"); + System.setProperty("javax.net.ssl.keyStorePassword","labo2022"); + System.setProperty("https.protocols","TLSv1.3"); + } + }