Interface TlsConfigurationRegistry

All Known Implementing Classes:
CertificateRecorder

public interface TlsConfigurationRegistry
  • Method Details

    • get

      Returns the named transport layer security configuration.
      Parameters:
      name - the name
      Returns:
      the configuration, empty if not configured.
    • getDefault

      Optional<TlsConfiguration> getDefault()
      Returns the default transport layer security configuration.
      Returns:
      the configuration, empty if not configured.
    • register

      void register(String name, TlsConfiguration configuration)
      Registers a TLS configuration into the registry. Note that only subsequents calls to get(String) will return the configuration.

      The passed configuration is not validated, so it's up to the caller to ensure the configuration is correct.

      Parameters:
      name - the name of the configuration, cannot be null, cannot be <default>.
      configuration - the configuration cannot be null.