Class TLSProtocolsConfiguration

java.lang.Object
org.graylog2.configuration.TLSProtocolsConfiguration

public class TLSProtocolsConfiguration extends Object
Configuration bean for enabled TLS protocols. This was extracted to a separate configuration bean so that it can be parsed in the early server startup phase individually. Parsing the entire server configuration might trigger the initialization of the default SSLContext, which needs to happen after a `jdk.tls.disabledAlgorithms` setting is applied.
  • Constructor Details

    • TLSProtocolsConfiguration

      public TLSProtocolsConfiguration()
    • TLSProtocolsConfiguration

      public TLSProtocolsConfiguration(Set<String> enabledTlsProtocols)
      Used to transfer this setting from Configuration
  • Method Details

    • getConfiguredTlsProtocols

      @Nullable public Set<String> getConfiguredTlsProtocols()
      Used to access the plain configuration value. In most cases you'd want to use getEnabledTlsProtocols()
    • getEnabledTlsProtocols

      public Set<String> getEnabledTlsProtocols()
      Retrieve the enabled TLS protocols setting.
      Returns:
      If the setting is explicitly configured (not null) return that. If it's configured to an empty set, return all supported protocols by the JVM. If it's not configured (null and the default) return a secure set of supported TLS protocols.