Class TlsConfigUtils

java.lang.Object
io.quarkus.tls.runtime.config.TlsConfigUtils

public class TlsConfigUtils extends Object
  • Method Details

    • read

      public static byte[] read(Path path)
      Read the content of the path.

      The file is read from the classpath if it exists, otherwise it is read from the file system.

      Parameters:
      path - the path, must not be null
      Returns:
      the content of the file
    • configure

      public static void configure(io.vertx.core.net.TCPSSLOptions options, TlsConfiguration configuration)
      Configure the TCPSSLOptions with the given TlsConfiguration.
      Parameters:
      options - the options to configure
      configuration - the configuration to use
    • configure

      public static void configure(io.vertx.core.net.ClientOptionsBase options, TlsConfiguration configuration)
      Configure the ClientOptionsBase with the given TlsConfiguration.
      Parameters:
      options - the options to configure
      configuration - the configuration to use
    • configure

      public static void configure(io.vertx.core.net.NetClientOptions options, TlsConfiguration configuration)
      Configure the NetClientOptions with the given TlsConfiguration.
      Parameters:
      options - the options to configure
      configuration - the configuration to use
    • configure

      public static void configure(io.vertx.core.http.HttpClientOptions options, TlsConfiguration configuration)
      Configure the HttpClientOptions with the given TlsConfiguration.
      Parameters:
      options - the options to configure
      configuration - the configuration to use
    • configure

      public static void configure(io.vertx.core.http.WebSocketClientOptions options, TlsConfiguration configuration)
      Configure the WebSocketClientOptions with the given TlsConfiguration.
      Parameters:
      options - the options to configure
      configuration - the configuration to use