use of org.webpieces.ssl.api.SslListener 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);
TCPChannel channel = mgr.createTCPChannel(id);
SslTCPChannel sslChannel = new SslTCPChannel(function, channel);
return sslChannel;
}
Aggregations