Top Description Methods
org.glassfish.grizzly.sni

public Interface SNIServerConfigResolver

Imports
org.glassfish.grizzly.Connection, org.glassfish.grizzly.ssl.SSLEngineConfigurator

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 Summary

Modifier and TypeMethod and Description
public SNIConfig

Returns:

SNIConfig for the new Connection, null value means use default SNIFilter#getServerSSLEngineConfigurator()
resolve
(Connection<L> connection, String
the SNI host name sent by a client
hostname
)

Returns SNIConfig for the new Connection, null value means use default SNIFilter#getServerSSLEngineConfigurator().

Method Detail

resolveback to summary
public SNIConfig resolve(Connection<L> connection, String hostname)

Returns SNIConfig for the new Connection, null value means use default SNIFilter#getServerSSLEngineConfigurator(). The SNIConfig could be created like:

SNIConfig.serverConfigBuilder()
              .sslEngineConfigurator(myHostSSLEngineConfigurator)
              .build();

Parameters
hostname:String

the SNI host name sent by a client

Returns:SNIConfig

SNIConfig for the new Connection, null value means use default SNIFilter#getServerSSLEngineConfigurator()