Package org.glassfish.grizzly.sni
Class SNIConfig
java.lang.Object
org.glassfish.grizzly.sni.SNIConfig
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 Summary
Modifier and TypeMethodDescriptionstatic SNIConfigfailServerConfig(String host) static SNIConfignewClientConfig(String host) static SNIConfignewClientConfig(String host, org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator) static SNIConfignewServerConfig(org.glassfish.grizzly.ssl.SSLEngineConfigurator sslEngineConfigurator)
-
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
- 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 extensionsslEngineConfigurator-SSLEngineConfigurator, or null for the default configuration- Returns:
- client-side SNI configuration
-
failServerConfig
- Parameters:
host-- Returns:
- SNIConfig for
Connection, whose SNI host wasn't recognized as supported, so theConnectionhas to be closed
-