@Test public void sslNotNullButTlsFlagOff() { final SslConfig sslConfig = mock(SslConfig.class); when(sslConfig.getTls()).thenReturn(SslAuthenticationMode.OFF); ServerConfig serverConfig = new ServerConfig(AppType.P2P, "somedomain:8989", CommunicationType.REST, sslConfig, null, null); assertThat(serverConfig.isSsl()).isFalse(); }
public boolean isSsl() { return Objects.nonNull(sslConfig) && sslConfig.getTls() == SslAuthenticationMode.STRICT; }
ServerConfig extends ConfigItem { public boolean isSsl() { return Objects.nonNull(sslConfig) && sslConfig.getTls() == SslAuthenticationMode.STRICT; } }
ServerConfig extends ConfigItem { public boolean isSsl() { return Objects.nonNull(sslConfig) && sslConfig.getTls() == SslAuthenticationMode.STRICT; } @Deprecated  ServerConfig(
            final AppType app,
            final String serverAddress,
            final CommunicationType communicationType,
            final SslConfig sslConfig,
            final InfluxConfig influxConfig,
            final String bindingAddress);  ServerConfig(); }
ServerConfig extends ConfigItem { public boolean isSsl() { return Objects.nonNull(sslConfig) && sslConfig.getTls() == SslAuthenticationMode.STRICT; } @Deprecated  ServerConfig(
            final AppType app,
            final String serverAddress,
            final CommunicationType communicationType,
            final SslConfig sslConfig,
            final InfluxConfig influxConfig,
            final String bindingAddress);  ServerConfig(); String getBindingAddress(); URI getServerUri(); boolean isSsl(); URI getBindingUri(); AppType getApp(); void setApp(AppType app); CommunicationType getCommunicationType(); void setCommunicationType(CommunicationType communicationType); SslConfig getSslConfig(); void setSslConfig(SslConfig sslConfig); InfluxConfig getInfluxConfig(); void setInfluxConfig(InfluxConfig influxConfig); void setBindingAddress(String bindingAddress); String getServerAddress(); void setServerAddress(String serverAddress); boolean isUnixSocket(); CrossDomainConfig getCrossDomainConfig(); void setCrossDomainConfig(CrossDomainConfig crossDomainConfig); Map<String, String> getProperties(); void setProperties(Map<String, String> properties); }
ServerConfig extends ConfigItem { public boolean isSsl() { return Objects.nonNull(sslConfig) && sslConfig.getTls() == SslAuthenticationMode.STRICT; } @Deprecated  ServerConfig(
            final AppType app,
            final String serverAddress,
            final CommunicationType communicationType,
            final SslConfig sslConfig,
            final InfluxConfig influxConfig,
            final String bindingAddress);  ServerConfig(); String getBindingAddress(); URI getServerUri(); boolean isSsl(); URI getBindingUri(); AppType getApp(); void setApp(AppType app); CommunicationType getCommunicationType(); void setCommunicationType(CommunicationType communicationType); SslConfig getSslConfig(); void setSslConfig(SslConfig sslConfig); InfluxConfig getInfluxConfig(); void setInfluxConfig(InfluxConfig influxConfig); void setBindingAddress(String bindingAddress); String getServerAddress(); void setServerAddress(String serverAddress); boolean isUnixSocket(); CrossDomainConfig getCrossDomainConfig(); void setCrossDomainConfig(CrossDomainConfig crossDomainConfig); Map<String, String> getProperties(); void setProperties(Map<String, String> properties);  }