@Incubating public final class Http3SslContextSpec extends Object implements SslProvider.GenericSslContextSpecWithSniSupport<QuicSslContextBuilder>
The default configuration is applied prior any other custom configuration.
Http3.supportedApplicationProtocols()
Modifier and Type | Method and Description |
---|---|
Http3SslContextSpec |
configure(Consumer<QuicSslContextBuilder> sslCtxBuilder)
Configures the underlying
SslContext . |
static Http3SslContextSpec |
forClient()
Creates a builder for new client-side
SslContext . |
static Http3SslContextSpec |
forServer(File keyFile,
String keyPassword,
File certChainFile)
Creates a builder for new server-side
SslContext . |
static Http3SslContextSpec |
forServer(KeyManagerFactory keyManagerFactory,
String password)
Creates a builder for new server-side
SslContext . |
static Http3SslContextSpec |
forServer(KeyManager keyManager,
String keyPassword)
Creates a builder for new server-side
SslContext . |
static Http3SslContextSpec |
forServer(PrivateKey key,
String keyPassword,
X509Certificate... certChain)
Creates a builder for new server-side
SslContext . |
SslContext |
sslContext()
Create a new
SslContext instance with the configured settings. |
SslContext |
sslContext(Map<String,SslProvider> sniMappings)
Create a new
SslContext instance with the configured settings. |
public static Http3SslContextSpec forClient()
SslContext
.QuicSslContextBuilder.forClient()
public static Http3SslContextSpec forServer(File keyFile, @Nullable String keyPassword, File certChainFile)
SslContext
.public static Http3SslContextSpec forServer(KeyManager keyManager, @Nullable String keyPassword)
SslContext
.public static Http3SslContextSpec forServer(KeyManagerFactory keyManagerFactory, @Nullable String password)
SslContext
.public static Http3SslContextSpec forServer(PrivateKey key, @Nullable String keyPassword, X509Certificate... certChain)
SslContext
.public Http3SslContextSpec configure(Consumer<QuicSslContextBuilder> sslCtxBuilder)
SslProvider.GenericSslContextSpecWithSniSupport
SslContext
.configure
in interface SslProvider.GenericSslContextSpec<QuicSslContextBuilder>
configure
in interface SslProvider.GenericSslContextSpecWithSniSupport<QuicSslContextBuilder>
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<QuicSslContextBuilder>
SslContext
instanceSSLException
- thrown when SslContext
instance cannot be createdpublic SslContext sslContext(Map<String,SslProvider> sniMappings) throws SSLException
SslProvider.GenericSslContextSpecWithSniSupport
SslContext
instance with the configured settings.sslContext
in interface SslProvider.GenericSslContextSpecWithSniSupport<QuicSslContextBuilder>
sniMappings
- SNI
configuration per domainSslContext
instanceSSLException
- thrown when SslContext
instance cannot be created