public abstract class AbstractProtocolSslContextSpec<T extends AbstractProtocolSslContextSpec<T>> extends Object implements SslProvider.ProtocolSslContextSpec, java.util.function.Supplier<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractProtocolSslContextSpec(SslContextBuilder sslContextBuilder) |
Modifier and Type | Method and Description |
---|---|
T |
configure(java.util.function.Consumer<SslContextBuilder> sslCtxBuilder)
Configures the underlying
SslContextBuilder . |
protected abstract java.util.function.Consumer<SslContextBuilder> |
defaultConfiguration() |
SslContext |
sslContext()
Create a new
SslContext instance with the configured settings. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
protected AbstractProtocolSslContextSpec(SslContextBuilder sslContextBuilder)
protected abstract java.util.function.Consumer<SslContextBuilder> defaultConfiguration()
public T configure(java.util.function.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