Interface SNIServerConfigResolver


  • public interface SNIServerConfigResolver
    The server-side SNI config resolver, which could be used to customize SSLEngineConfigurator based on the SNI host name information sent from client.
    Author:
    Alexey Stashok
    • Method Detail

      • resolve

        SNIConfig resolve​(org.glassfish.grizzly.Connection connection,
                          String hostname)
        Returns SNIConfig for the new Connection, null value means use default SSLBaseFilter.getServerSSLEngineConfigurator(). The SNIConfig could be created like:
         
              SNIConfig.serverConfigBuilder()
                       .sslEngineConfigurator(myHostSSLEngineConfigurator)
                       .build();
         
         
        Parameters:
        connection -
        hostname - the SNI host name sent by a client
        Returns:
        SNIConfig for the new Connection, null value means use default SSLBaseFilter.getServerSSLEngineConfigurator()