.enabled(sslEnabled) .invalidHostNameAllowed(sslInvalidHostNameAllowed) .context(sslContext)
private static SslSettings buildSSLSettings() { final SSLContext sslContext; try { sslContext = SSLContext.getInstance("TLSv1.2"); sslContext.init(null, null, null); } catch (NoSuchAlgorithmException e) { throw new IllegalArgumentException("No such Algorithm is supported ", e); } catch (KeyManagementException e) { throw new IllegalStateException("KeyManagementException ", e); } return SslSettings.builder() .context(sslContext) .enabled(true) .build(); }
private static SslSettings buildSSLSettings() { final SSLContext sslContext; try { sslContext = SSLContext.getInstance("TLSv1.2"); sslContext.init(null, null, null); } catch (NoSuchAlgorithmException e) { throw new IllegalArgumentException("No such Algorithm is supported ", e); } catch (KeyManagementException e) { throw new IllegalStateException("KeyManagementException ", e); } return SslSettings.builder() .context(sslContext) .enabled(true) .build(); }
serverBuilder.heartbeatFrequency(heartbeatFrequency, TimeUnit.MILLISECONDS); if (sslEnabled != null) sslBuilder.enabled(sslEnabled); if (keystore != null) { try {
.enabled(sslEnabled) .invalidHostNameAllowed(sslInvalidHostNameAllowed) .context(sslContext)