Search in sources :

Example 1 with AsyncSSLEngine

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;
}
Also used : BufferPool(org.webpieces.data.api.BufferPool) DatagramChannel(org.webpieces.nio.api.channels.DatagramChannel) AsyncSSLFactory(org.webpieces.ssl.api.AsyncSSLFactory) TCPServerChannel(org.webpieces.nio.api.channels.TCPServerChannel) ConnectionListener(org.webpieces.nio.api.handlers.ConnectionListener) Function(java.util.function.Function) ChannelManager(org.webpieces.nio.api.ChannelManager) SSLMetrics(org.webpieces.ssl.api.SSLMetrics) SSLEngine(javax.net.ssl.SSLEngine) UDPChannel(org.webpieces.nio.api.channels.UDPChannel) AsyncSSLEngine(org.webpieces.ssl.api.AsyncSSLEngine) DatagramListener(org.webpieces.nio.api.handlers.DatagramListener) MeterRegistry(io.micrometer.core.instrument.MeterRegistry) SSLEngineFactory(org.webpieces.nio.api.SSLEngineFactory) SslListener(org.webpieces.ssl.api.SslListener) TCPChannel(org.webpieces.nio.api.channels.TCPChannel) AsyncSSLEngine(org.webpieces.ssl.api.AsyncSSLEngine) TCPChannel(org.webpieces.nio.api.channels.TCPChannel) SslListener(org.webpieces.ssl.api.SslListener)

Aggregations

MeterRegistry (io.micrometer.core.instrument.MeterRegistry)1 Function (java.util.function.Function)1 SSLEngine (javax.net.ssl.SSLEngine)1 BufferPool (org.webpieces.data.api.BufferPool)1 ChannelManager (org.webpieces.nio.api.ChannelManager)1 SSLEngineFactory (org.webpieces.nio.api.SSLEngineFactory)1 DatagramChannel (org.webpieces.nio.api.channels.DatagramChannel)1 TCPChannel (org.webpieces.nio.api.channels.TCPChannel)1 TCPServerChannel (org.webpieces.nio.api.channels.TCPServerChannel)1 UDPChannel (org.webpieces.nio.api.channels.UDPChannel)1 ConnectionListener (org.webpieces.nio.api.handlers.ConnectionListener)1 DatagramListener (org.webpieces.nio.api.handlers.DatagramListener)1 AsyncSSLEngine (org.webpieces.ssl.api.AsyncSSLEngine)1 AsyncSSLFactory (org.webpieces.ssl.api.AsyncSSLFactory)1 SSLMetrics (org.webpieces.ssl.api.SSLMetrics)1 SslListener (org.webpieces.ssl.api.SslListener)1