@BeforeClass public static void setUpClass() throws Exception { Security.addProvider(new BouncyCastleProvider()); tempDir = ClientBase.createEmptyTestDir(); x509TestContext = X509TestContext.newBuilder() .setTempDir(tempDir) .setKeyStoreKeyType(X509KeyType.EC) .setTrustStoreKeyType(X509KeyType.EC) .build(); }
public UnifiedServerSocketTest( final X509KeyType caKeyType, final X509KeyType certKeyType, final Boolean hostnameVerification, final Integer paramIndex) { super(paramIndex, () -> { try { return X509TestContext.newBuilder() .setTempDir(tempDir) .setKeyStoreKeyType(certKeyType) .setTrustStoreKeyType(caKeyType) .setHostnameVerification(hostnameVerification) .build(); } catch (Exception e) { throw new RuntimeException(e); } }); }
public PemReaderTest( X509KeyType caKeyType, X509KeyType certKeyType, String keyPassword, Integer paramIndex) { super(paramIndex, () -> { try { return X509TestContext.newBuilder() .setTempDir(tempDir) .setKeyStorePassword(keyPassword) .setKeyStoreKeyType(certKeyType) .setTrustStorePassword(keyPassword) .setTrustStoreKeyType(caKeyType) .build(); } catch (Exception e) { throw new RuntimeException(e); } }); }
public PEMFileLoaderTest( final X509KeyType caKeyType, final X509KeyType certKeyType, final String keyPassword, final Integer paramIndex) { super(paramIndex, () -> { try { return X509TestContext.newBuilder() .setTempDir(tempDir) .setKeyStorePassword(keyPassword) .setKeyStoreKeyType(certKeyType) .setTrustStorePassword(keyPassword) .setTrustStoreKeyType(caKeyType) .build(); } catch (Exception e) { throw new RuntimeException(e); } }); }
public X509UtilTest( X509KeyType caKeyType, X509KeyType certKeyType, String keyPassword, Integer paramIndex) { super(paramIndex, () -> { try { return X509TestContext.newBuilder() .setTempDir(tempDir) .setKeyStorePassword(keyPassword) .setKeyStoreKeyType(certKeyType) .setTrustStorePassword(keyPassword) .setTrustStoreKeyType(caKeyType) .build(); } catch (Exception e) { throw new RuntimeException(e); } }); }
public JKSFileLoaderTest( final X509KeyType caKeyType, final X509KeyType certKeyType, final String keyPassword, final Integer paramIndex) { super(paramIndex, () -> { try { return X509TestContext.newBuilder() .setTempDir(tempDir) .setKeyStorePassword(keyPassword) .setKeyStoreKeyType(certKeyType) .setTrustStorePassword(keyPassword) .setTrustStoreKeyType(caKeyType) .build(); } catch (Exception e) { throw new RuntimeException(e); } }); }