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
SslContext . |
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.GenericSslContextSpec
SslContext
.configure
in interface SslProvider.GenericSslContextSpec<SslContextBuilder>
configure
in interface SslProvider.ProtocolSslContextSpec
sslCtxBuilder
- a callback for configuring the underlying SslContext
this
public SslContext sslContext() throws SSLException
SslProvider.GenericSslContextSpec
SslContext
instance with the configured settings.sslContext
in interface SslProvider.GenericSslContextSpec<SslContextBuilder>
SslContext
instanceSSLException
- thrown when SslContext
instance cannot be created