Java Code Examples for org.apache.flink.runtime.net.SSLUtilsTest#createInternalSslConfigWithKeyAndTrustStores()
The following examples show how to use
org.apache.flink.runtime.net.SSLUtilsTest#createInternalSslConfigWithKeyAndTrustStores() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BlobClientSslTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
/** * Starts the SSL enabled BLOB server. */ @BeforeClass public static void startSSLServer() throws IOException { Configuration config = SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporarySslFolder.newFolder().getAbsolutePath()); blobSslServer = new TestBlobServer(config, new VoidBlobStore()); blobSslServer.start(); sslClientConfig = config; }
Example 2
Source File: BlobClientSslTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
@BeforeClass public static void startNonSSLServer() throws IOException { Configuration config = SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporarySslFolder.newFolder().getAbsolutePath()); config.setBoolean(BlobServerOptions.SSL_ENABLED, false); blobNonSslServer = new BlobServer(config, new VoidBlobStore()); blobNonSslServer.start(); nonSslClientConfig = config; }
Example 3
Source File: BlobClientSslTest.java From flink with Apache License 2.0 | 5 votes |
/** * Starts the SSL enabled BLOB server. */ @BeforeClass public static void startSSLServer() throws IOException { Configuration config = SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores( SecurityOptions.SSL_PROVIDER.defaultValue()); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporarySslFolder.newFolder().getAbsolutePath()); blobSslServer = new TestBlobServer(config, new VoidBlobStore()); blobSslServer.start(); sslClientConfig = config; }
Example 4
Source File: BlobClientSslTest.java From flink with Apache License 2.0 | 5 votes |
@BeforeClass public static void startNonSSLServer() throws IOException { Configuration config = SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores( SecurityOptions.SSL_PROVIDER.defaultValue()); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporarySslFolder.newFolder().getAbsolutePath()); config.setBoolean(BlobServerOptions.SSL_ENABLED, false); blobNonSslServer = new BlobServer(config, new VoidBlobStore()); blobNonSslServer.start(); nonSslClientConfig = config; }
Example 5
Source File: BlobClientSslTest.java From flink with Apache License 2.0 | 5 votes |
/** * Starts the SSL enabled BLOB server. */ @BeforeClass public static void startSSLServer() throws IOException { Configuration config = SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores( SecurityOptions.SSL_PROVIDER.defaultValue()); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporarySslFolder.newFolder().getAbsolutePath()); blobSslServer = new TestBlobServer(config, new VoidBlobStore()); blobSslServer.start(); sslClientConfig = config; }
Example 6
Source File: BlobClientSslTest.java From flink with Apache License 2.0 | 5 votes |
@BeforeClass public static void startNonSSLServer() throws IOException { Configuration config = SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores( SecurityOptions.SSL_PROVIDER.defaultValue()); config.setString(BlobServerOptions.STORAGE_DIRECTORY, temporarySslFolder.newFolder().getAbsolutePath()); config.setBoolean(BlobServerOptions.SSL_ENABLED, false); blobNonSslServer = new BlobServer(config, new VoidBlobStore()); blobNonSslServer.start(); nonSslClientConfig = config; }
Example 7
Source File: JobSubmitHandlerTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
public JobSubmitHandlerTest(boolean withSsl) { this.configuration = withSsl ? SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores() : new Configuration(); }
Example 8
Source File: NettyClientServerSslTest.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
private static Configuration createSslConfig() { return SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(); }
Example 9
Source File: JobSubmitHandlerTest.java From flink with Apache License 2.0 | 4 votes |
public JobSubmitHandlerTest(Tuple2<Boolean, String> withSsl) { this.configuration = withSsl.f0 ? SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(withSsl.f1) : new Configuration(); }
Example 10
Source File: NettyClientServerSslTest.java From flink with Apache License 2.0 | 4 votes |
private Configuration createSslConfig() { return SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(sslProvider); }
Example 11
Source File: JobSubmitHandlerTest.java From flink with Apache License 2.0 | 4 votes |
public JobSubmitHandlerTest(Tuple2<Boolean, String> withSsl) { this.configuration = withSsl.f0 ? SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(withSsl.f1) : new Configuration(); }
Example 12
Source File: NettyClientServerSslTest.java From flink with Apache License 2.0 | 4 votes |
private Configuration createSslConfig() { return SSLUtilsTest.createInternalSslConfigWithKeyAndTrustStores(sslProvider); }