Class QuicSslContextFactory
java.lang.Object
io.vertx.core.spi.tls.QuicSslContextFactory
- All Implemented Interfaces:
SslContextFactory
Implementation of
SslContextFactory that creates and configures a Netty QuicSslContext using a
QuicSslContextBuilder.- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationProtocols(List<String> applicationProtocols) Set the application protocols to use when using ALPN.create()enabledCipherSuites(Set<String> enabledCipherSuites) Set the enabled cipher suites.enabledProtocols(Set<String> enabledProtocols) forClient(SNIServerName serverName, String endpointIdentificationAlgorithm) Configure the factory to build for clientforServer(ClientAuth clientAuth) Configure the factory to build for serverSet the key manager factory to use.Set the trust manager factory to use.useAlpn(boolean useAlpn) Set whether to use ALPN.
-
Constructor Details
-
QuicSslContextFactory
public QuicSslContextFactory(io.netty.handler.codec.quic.BoringSSLKeylog keylog)
-
-
Method Details
-
useAlpn
Description copied from interface:SslContextFactorySet whether to use ALPN.- Specified by:
useAlpnin interfaceSslContextFactory- Parameters:
useAlpn-trueto use ALPN- Returns:
- a reference to this, so the API can be used fluently
-
forServer
Description copied from interface:SslContextFactoryConfigure the factory to build for server- Specified by:
forServerin interfaceSslContextFactory- Parameters:
clientAuth- the client auth to use- Returns:
- a reference to this, so the API can be used fluently
-
forClient
public SslContextFactory forClient(SNIServerName serverName, String endpointIdentificationAlgorithm) Description copied from interface:SslContextFactoryConfigure the factory to build for client- Specified by:
forClientin interfaceSslContextFactory- Parameters:
serverName- the optional server name- Returns:
- a reference to this, so the API can be used fluently
-
enabledProtocols
- Specified by:
enabledProtocolsin interfaceSslContextFactory
-
keyMananagerFactory
Description copied from interface:SslContextFactorySet the key manager factory to use.- Specified by:
keyMananagerFactoryin interfaceSslContextFactory- Parameters:
kmf- the key manager factory instance- Returns:
- a reference to this, so the API can be used fluently
-
trustManagerFactory
Description copied from interface:SslContextFactorySet the trust manager factory to use.- Specified by:
trustManagerFactoryin interfaceSslContextFactory- Parameters:
tmf- the trust manager factory instance- Returns:
- a reference to this, so the API can be used fluently
-
create
- Specified by:
createin interfaceSslContextFactory- Returns:
- a configured
SslContext - Throws:
SSLException
-
enabledCipherSuites
Description copied from interface:SslContextFactorySet the enabled cipher suites.- Specified by:
enabledCipherSuitesin interfaceSslContextFactory- Parameters:
enabledCipherSuites- the set of cipher suites- Returns:
- a reference to this, so the API can be used fluently
-
applicationProtocols
Description copied from interface:SslContextFactorySet the application protocols to use when using ALPN.- Specified by:
applicationProtocolsin interfaceSslContextFactory- Parameters:
applicationProtocols- this list of application protocols- Returns:
- a reference to this, so the API can be used fluently
-