This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.hibernate.test; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.Inject; | |
import com.google.inject.Singleton; | |
import com.google.inject.persist.PersistService; | |
import com.google.inject.persist.jpa.JpaPersistModule; | |
public class DatabaseTestModule extends AbstractModule { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a KeyStore from standard PEM file | |
* | |
* @param privateKeyPem the private key PEM file | |
* @param certificatePem the certificate(s) PEM file | |
* @param the password to set to protect the private key | |
*/ | |
public static KeyStore createKeyStore(File privateKeyPem, File certificatePem, final String password) | |
throws Exception, KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException { | |
final X509Certificate[] cert = createCertificates(certificatePem); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dk.danskerdave.javafx.image; | |
import java.util.stream.IntStream; | |
import javafx.application.Application; | |
import javafx.beans.property.*; | |
import javafx.geometry.*; | |
import javafx.scene.*; | |
import javafx.scene.control.*; | |
import javafx.scene.control.Alert.AlertType; |