Interface SNIClientConfigResolver


  • public interface SNIClientConfigResolver
    The client-side SNI config resolver, which could be used to customize SNI host name sent from client to server. By default the host name is based on Connection.getPeerAddress() value, particularly for TCP connections the default value will be based on InetSocketAddress.getHostString(). But SNIClientConfigResolver allows you to customize the default host name value.
    Author:
    Alexey Stashok
    • Method Detail

      • resolve

        SNIConfig resolve​(org.glassfish.grizzly.Connection connection)
        Returns SNIConfig for the new Connection, null value means no SNI information will be sent. The SNIConfig could be created like:
         
              SNIConfig.clientConfigBuilder()
                       .host("myhost.com")
                       .sslEngineConfigurator(myHostSSLEngineConfigurator)
                       .build();
         
         
        Parameters:
        connection -
        Returns:
        SNIConfig for the new Connection, null value means no SNI information will be sent