use of org.webpieces.ssl.api.AsyncSSLEngine in project webpieces by deanhiller.
the class SslChannelService method createTCPChannel.
@Override
public TCPChannel createTCPChannel(String id, SSLEngine engine) {
if (engine == null || id == null)
throw new IllegalArgumentException("no arguments can be null");
Function<SslListener, AsyncSSLEngine> function = l -> AsyncSSLFactory.create(id, engine, pool, l, sslMetrics);
TCPChannel channel = mgr.createTCPChannel(id);
SslTCPChannel sslChannel = new SslTCPChannel(function, channel, sslMetrics);
return sslChannel;
}
Aggregations