Package reactor.netty.http
Class Http3SslContextSpec
java.lang.Object
reactor.netty.http.Http3SslContextSpec
- All Implemented Interfaces:
SslProvider.GenericSslContextSpec<io.netty.incubator.codec.quic.QuicSslContextBuilder>
,SslProvider.GenericSslContextSpecWithSniSupport<io.netty.incubator.codec.quic.QuicSslContextBuilder>
@Incubating
public final class Http3SslContextSpec
extends Object
implements SslProvider.GenericSslContextSpecWithSniSupport<io.netty.incubator.codec.quic.QuicSslContextBuilder>
SslContext builder that provides default configuration specific to HTTP/3 as follows:
- Supported application protocols
The default configuration is applied prior any other custom configuration.
- Since:
- 1.2.0
- Author:
- Violeta Georgieva
- See Also:
-
Http3.supportedApplicationProtocols()
-
Method Summary
Modifier and TypeMethodDescriptionConfigures the underlyingSslContext
.static Http3SslContextSpec
Creates a builder for new client-sideSslContext
.static Http3SslContextSpec
Creates a builder for new server-sideSslContext
.static Http3SslContextSpec
forServer
(PrivateKey key, @Nullable String keyPassword, X509Certificate... certChain) Creates a builder for new server-sideSslContext
.static Http3SslContextSpec
forServer
(KeyManagerFactory keyManagerFactory, @Nullable String password) Creates a builder for new server-sideSslContext
.static Http3SslContextSpec
forServer
(KeyManager keyManager, @Nullable String keyPassword) Creates a builder for new server-sideSslContext
.Create a newSslContext
instance with the configured settings.sslContext
(Map<String, SslProvider> sniMappings) Create a newSslContext
instance with the configured settings.
-
Method Details
-
forClient
Creates a builder for new client-sideSslContext
.- See Also:
-
QuicSslContextBuilder.forClient()
-
forServer
public static Http3SslContextSpec forServer(File keyFile, @Nullable String keyPassword, File certChainFile) Creates a builder for new server-sideSslContext
.- See Also:
-
QuicSslContextBuilder.forServer(File, String, File)
-
forServer
Creates a builder for new server-sideSslContext
.- See Also:
-
QuicSslContextBuilder.forServer(KeyManager, String)
-
forServer
public static Http3SslContextSpec forServer(KeyManagerFactory keyManagerFactory, @Nullable String password) Creates a builder for new server-sideSslContext
.- See Also:
-
QuicSslContextBuilder.forServer(KeyManagerFactory, String)
-
forServer
public static Http3SslContextSpec forServer(PrivateKey key, @Nullable String keyPassword, X509Certificate... certChain) Creates a builder for new server-sideSslContext
.- See Also:
-
QuicSslContextBuilder.forServer(PrivateKey, String, X509Certificate...)
-
configure
public Http3SslContextSpec configure(Consumer<io.netty.incubator.codec.quic.QuicSslContextBuilder> sslCtxBuilder) Description copied from interface:SslProvider.GenericSslContextSpecWithSniSupport
Configures the underlyingSslContext
.- Specified by:
configure
in interfaceSslProvider.GenericSslContextSpec<io.netty.incubator.codec.quic.QuicSslContextBuilder>
- Specified by:
configure
in interfaceSslProvider.GenericSslContextSpecWithSniSupport<io.netty.incubator.codec.quic.QuicSslContextBuilder>
- 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<io.netty.incubator.codec.quic.QuicSslContextBuilder>
- Returns:
- a new
SslContext
instance - Throws:
SSLException
- thrown whenSslContext
instance cannot be created
-
sslContext
Description copied from interface:SslProvider.GenericSslContextSpecWithSniSupport
Create a newSslContext
instance with the configured settings.- Specified by:
sslContext
in interfaceSslProvider.GenericSslContextSpecWithSniSupport<io.netty.incubator.codec.quic.QuicSslContextBuilder>
- Parameters:
sniMappings
-SNI
configuration per domain- Returns:
- a new
SslContext
instance - Throws:
SSLException
- thrown whenSslContext
instance cannot be created
-