Class SNIConfig

java.lang.Object
org.glassfish.grizzly.sni.SNIConfig

public class SNIConfig extends Object
The object represents SNI configuration for either server or client side. In order to create a server-side SNI configuration - the #serverConfigBuilder() has to be used, for client-side SNI configuration please use #clientConfigBuilder().
Author:
Alexey Stashok
  • Method Details

    • newServerConfig

      public static SNIConfig newServerConfig(org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
      Parameters:
      sslEngineConfigurator - SSLEngineConfigurator, or null for the default configuration
      Returns:
      server-side SNI configuration
    • newClientConfig

      public static SNIConfig newClientConfig(String host)
      Parameters:
      host - the SNI host name to be sent to a server, or null to not use SNI extension
      Returns:
      client-side SNI configuration
    • newClientConfig

      public static SNIConfig newClientConfig(String host, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
      Parameters:
      host - the SNI host name to be sent to a server, or null to not use SNI extension
      sslEngineConfigurator - SSLEngineConfigurator, or null for the default configuration
      Returns:
      client-side SNI configuration
    • failServerConfig

      public static SNIConfig failServerConfig(String host)
      Parameters:
      host -
      Returns:
      SNIConfig for Connection, whose SNI host wasn't recognized as supported, so the Connection has to be closed