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