public SslSocketFactory(final NiFiProperties nifiProperties) { final SSLContext sslCtx = SslContextFactory.createSslContext(nifiProperties); if (sslCtx == null) { try { sslSocketFactory = SSLContext.getDefault().getSocketFactory(); } catch (final NoSuchAlgorithmException nsae) { throw new SslSocketFactoryCreationException(nsae); } } else { sslSocketFactory = sslCtx.getSocketFactory(); } }
public SslServerSocketFactory(final NiFiProperties nifiProperties) { final SSLContext sslCtx = SslContextFactory.createSslContext(nifiProperties); if (sslCtx == null) { try { sslServerSocketFactory = SSLContext.getDefault().getServerSocketFactory(); } catch (final NoSuchAlgorithmException nsae) { throw new SslServerSocketFactoryCreationException(nsae); } } else { sslServerSocketFactory = sslCtx.getServerSocketFactory(); } }
final SSLContext sslContext = SslContextFactory.createSslContext(nifiProperties); if (sslContext == null && uriScheme.equalsIgnoreCase("https")) { throw new IllegalStateException("Failed to create Flow Registry for URI " + registryUrl
private Tuple<SSLSocketFactory, X509TrustManager> createSslSocketFactory(final NiFiProperties properties) { final SSLContext sslContext = SslContextFactory.createSslContext(properties);
client = WebUtils.createClient(clientConfig, SslContextFactory.createSslContext(properties)); } else { client = WebUtils.createClient(clientConfig);
final SSLContext sslContext = SslContextFactory.createSslContext(properties); final ComponentLog logger = new SimpleProcessLogger(providerId, provider); final StateProviderInitializationContext initContext = new StandardStateProviderInitializationContext(providerId, propertyMap, sslContext, logger);
this.heartbeatMonitor = heartbeatMonitor; this.leaderElectionManager = leaderElectionManager; this.sslContext = SslContextFactory.createSslContext(nifiProperties); this.extensionManager = extensionManager; this.clusterCoordinator = clusterCoordinator;
public SslSocketFactory(final NiFiProperties nifiProperties) { final SSLContext sslCtx = SslContextFactory.createSslContext(nifiProperties); if (sslCtx == null) { try { sslSocketFactory = SSLContext.getDefault().getSocketFactory(); } catch (final NoSuchAlgorithmException nsae) { throw new SslSocketFactoryCreationException(nsae); } } else { sslSocketFactory = sslCtx.getSocketFactory(); } }
public SslServerSocketFactory(final NiFiProperties nifiProperties) { final SSLContext sslCtx = SslContextFactory.createSslContext(nifiProperties); if (sslCtx == null) { try { sslServerSocketFactory = SSLContext.getDefault().getServerSocketFactory(); } catch (final NoSuchAlgorithmException nsae) { throw new SslServerSocketFactoryCreationException(nsae); } } else { sslServerSocketFactory = sslCtx.getServerSocketFactory(); } }
client = WebUtils.createClient(clientConfig, SslContextFactory.createSslContext(properties)); } else { client = WebUtils.createClient(clientConfig);