Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The format used for the keystore
- server.ssl.key-store-type=JKS
- # The path to the keystore containing the certificate
- server.ssl.key-store=classpath:keystore.jks
- # The password used to generate the certificate
- server.ssl.key-store-password=mypass
- # The alias mapped to the certificate
- server.ssl.key-alias=tomcat
- public class MainApp extends Application {
- private static Stage parent;
- private static Parent root;
- static
- {
- System.setProperty("javax.net.ssl.trustStore","c:/ssl/keystore.jks");
- System.setProperty("javax.net.ssl.trustStorePassword", "notfound");
- System.setProperty("javax.net.ssl.keyStore", "c:/ssl/keystore.jks");
- System.setProperty("javax.net.ssl.keyStorePassword", "notfound");
- }
- @Override
- public void start(Stage stage) throws Exception {
- Unirest.setHttpClient(HttpClients.createSystem());
- root = FXMLLoader.load(getClass().getResource("/fxml/Scene.fxml"));
- parent = stage;
- Scene scene = new Scene(root);
- scene.getStylesheets().add("/styles/Styles.css");
- stage.initStyle(StageStyle.TRANSPARENT);
- scene.setFill(Color.TRANSPARENT);
- stage.setTitle("JavaFX and Maven");
- // stage.setOpacity(0.2);
- stage.setScene(scene);
- stage.show();
- }
- HttpResponse<String> asJson = Unirest.get("http://localhost:8181/logins/login/?us_username=" + username.getText() + "&us_pwdusr=" + Crypto.getSha(password.getText()))
- .header("authorization", "Basic " + value)
- .header("cache-control", "no-cache").asString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement