Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. # The format used for the keystore
  2. server.ssl.key-store-type=JKS
  3. # The path to the keystore containing the certificate
  4. server.ssl.key-store=classpath:keystore.jks
  5. # The password used to generate the certificate
  6. server.ssl.key-store-password=mypass
  7. # The alias mapped to the certificate
  8. server.ssl.key-alias=tomcat
  9.  
  10. public class MainApp extends Application {
  11.  
  12. private static Stage parent;
  13. private static Parent root;
  14.  
  15. static
  16. {
  17. System.setProperty("javax.net.ssl.trustStore","c:/ssl/keystore.jks");
  18. System.setProperty("javax.net.ssl.trustStorePassword", "notfound");
  19. System.setProperty("javax.net.ssl.keyStore", "c:/ssl/keystore.jks");
  20. System.setProperty("javax.net.ssl.keyStorePassword", "notfound");
  21. }
  22.  
  23. @Override
  24. public void start(Stage stage) throws Exception {
  25.  
  26.  
  27. Unirest.setHttpClient(HttpClients.createSystem());
  28.  
  29. root = FXMLLoader.load(getClass().getResource("/fxml/Scene.fxml"));
  30. parent = stage;
  31. Scene scene = new Scene(root);
  32. scene.getStylesheets().add("/styles/Styles.css");
  33. stage.initStyle(StageStyle.TRANSPARENT);
  34. scene.setFill(Color.TRANSPARENT);
  35.  
  36. stage.setTitle("JavaFX and Maven");
  37. // stage.setOpacity(0.2);
  38. stage.setScene(scene);
  39. stage.show();
  40.  
  41. }
  42.  
  43. HttpResponse<String> asJson = Unirest.get("http://localhost:8181/logins/login/?us_username=" + username.getText() + "&us_pwdusr=" + Crypto.getSha(password.getText()))
  44. .header("authorization", "Basic " + value)
  45. .header("cache-control", "no-cache").asString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement