public abstract class AbstractProtocolSslContextSpec<T extends AbstractProtocolSslContextSpec<T>> extends Object implements SslProvider.ProtocolSslContextSpec, Supplier<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProtocolSslContextSpec(io.netty.handler.ssl.SslContextBuilder sslContextBuilder) |
| Modifier and Type | Method and Description |
|---|---|
T |
configure(Consumer<io.netty.handler.ssl.SslContextBuilder> sslCtxBuilder)
Configures the underlying
SslContextBuilder. |
protected abstract Consumer<io.netty.handler.ssl.SslContextBuilder> |
defaultConfiguration() |
io.netty.handler.ssl.SslContext |
sslContext()
Create a new
SslContext instance with the configured settings. |
protected AbstractProtocolSslContextSpec(io.netty.handler.ssl.SslContextBuilder sslContextBuilder)
protected abstract Consumer<io.netty.handler.ssl.SslContextBuilder> defaultConfiguration()
public T configure(Consumer<io.netty.handler.ssl.SslContextBuilder> sslCtxBuilder)
SslProvider.ProtocolSslContextSpecSslContextBuilder.configure in interface SslProvider.ProtocolSslContextSpecsslCtxBuilder - a callback for configuring the underlying SslContextBuilderthispublic io.netty.handler.ssl.SslContext sslContext()
throws SSLException
SslProvider.ProtocolSslContextSpecSslContext instance with the configured settings.sslContext in interface SslProvider.ProtocolSslContextSpecSslContext instanceSSLException - thrown when SslContext instance cannot be created