Package reactor.netty.tcp
Class AbstractProtocolSslContextSpec<T extends AbstractProtocolSslContextSpec<T>>
java.lang.Object
reactor.netty.tcp.AbstractProtocolSslContextSpec<T>
- All Implemented Interfaces:
Supplier<T>
,SslProvider.GenericSslContextSpec<SslContextBuilder>
,SslProvider.ProtocolSslContextSpec
- Direct Known Subclasses:
DefaultSslContextSpec
,Http11SslContextSpec
,Http2SslContextSpec
,TcpSslContextSpec
public abstract class AbstractProtocolSslContextSpec<T extends AbstractProtocolSslContextSpec<T>>
extends Object
implements SslProvider.ProtocolSslContextSpec, Supplier<T>
SslContext builder that provides, specific for protocol, default configuration.
- Since:
- 1.0.6
- Author:
- Violeta Georgieva
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractProtocolSslContextSpec
(SslContextBuilder sslContextBuilder) -
Method Summary
Modifier and TypeMethodDescriptionconfigure
(Consumer<SslContextBuilder> sslCtxBuilder) Configures the underlyingSslContext
.protected abstract Consumer<SslContextBuilder>
Create a newSslContext
instance with the configured settings.
-
Constructor Details
-
AbstractProtocolSslContextSpec
-
-
Method Details
-
defaultConfiguration
-
configure
Description copied from interface:SslProvider.GenericSslContextSpec
Configures the underlyingSslContext
.- Specified by:
configure
in interfaceSslProvider.GenericSslContextSpec<T extends AbstractProtocolSslContextSpec<T>>
- Specified by:
configure
in interfaceSslProvider.ProtocolSslContextSpec
- Parameters:
sslCtxBuilder
- a callback for configuring the underlyingSslContext
- Returns:
this
-
sslContext
Description copied from interface:SslProvider.GenericSslContextSpec
Create a newSslContext
instance with the configured settings.- Specified by:
sslContext
in interfaceSslProvider.GenericSslContextSpec<T extends AbstractProtocolSslContextSpec<T>>
- Returns:
- a new
SslContext
instance - Throws:
SSLException
- thrown whenSslContext
instance cannot be created
-