public class FooBarSNIResolver extends Object implements SNIServerConfigResolver
SNIServerConfigResolver
, that manages SSL configuration for
"*.foo.com" and "*.bar.com" virtual hosts. Connections to other virtual hosts
will be terminated.Constructor and Description |
---|
FooBarSNIResolver(SSLEngineConfigurator fooSSLEngineConfig,
SSLEngineConfigurator barSSLEngineConfig) |
Modifier and Type | Method and Description |
---|---|
SNIConfig |
resolve(Connection connection,
String hostname)
Returns
SNIConfig for the new Connection , null
value means use default SSLBaseFilter.getServerSSLEngineConfigurator() . |
public FooBarSNIResolver(SSLEngineConfigurator fooSSLEngineConfig, SSLEngineConfigurator barSSLEngineConfig)
public SNIConfig resolve(Connection connection, String hostname)
SNIServerConfigResolver
SNIConfig
for the new Connection
, null
value means use default SSLBaseFilter.getServerSSLEngineConfigurator()
.
The SNIConfig
could be created like:
SNIConfig.serverConfigBuilder()
.sslEngineConfigurator(myHostSSLEngineConfigurator)
.build();
resolve
in interface SNIServerConfigResolver
hostname
- the SNI host name sent by a clientSNIConfig
for the new Connection
, null
value means use default SSLBaseFilter.getServerSSLEngineConfigurator()
Copyright © 2015 Oracle Corporation. All rights reserved.