Пример #1
0
 private void setupHttps() {
   String keyStoreLocation = "keystore.jks";
   secure(keyStoreLocation, keyStoreLocation, null, null);
 }
Пример #2
0
 public static void main(String[] args) {
   secure("deploy/keystore.jks", "password", null, null);
   get("/secureHello", (req, res) -> "Hello Secure World");
 }