public class DefaultSslContextFactory extends Object implements SslContextFactory
SslContextFactory that creates and configures a Netty SslContext using a
SslContextBuilder.| Constructor and Description |
|---|
DefaultSslContextFactory(io.netty.handler.ssl.SslProvider sslProvider,
boolean sslSessionCacheEnabled) |
| Modifier and Type | Method and Description |
|---|---|
SslContextFactory |
applicationProtocols(List<String> applicationProtocols)
Set the application protocols to use when using ALPN.
|
SslContextFactory |
clientAuth(io.netty.handler.ssl.ClientAuth clientAuth)
Configures the client auth
|
io.netty.handler.ssl.SslContext |
create() |
SslContextFactory |
enabledCipherSuites(Set<String> enabledCipherSuites)
Set the enabled cipher suites.
|
SslContextFactory |
forClient(boolean forClient)
Set whether to build a context for clients or for servers
|
SslContextFactory |
keyMananagerFactory(KeyManagerFactory kmf)
Set the key manager factory to use.
|
SslContextFactory |
trustManagerFactory(TrustManagerFactory tmf)
Set the trust manager factory to use.
|
SslContextFactory |
useAlpn(boolean useAlpn)
Set whether to use ALPN.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserverNamepublic DefaultSslContextFactory(io.netty.handler.ssl.SslProvider sslProvider,
boolean sslSessionCacheEnabled)
public SslContextFactory useAlpn(boolean useAlpn)
SslContextFactoryuseAlpn in interface SslContextFactoryuseAlpn - true to use ALPNpublic SslContextFactory clientAuth(io.netty.handler.ssl.ClientAuth clientAuth)
SslContextFactoryclientAuth in interface SslContextFactoryclientAuth - the client auth to usepublic SslContextFactory forClient(boolean forClient)
SslContextFactoryforClient in interface SslContextFactoryforClient - true for client otherwise for serverspublic SslContextFactory keyMananagerFactory(KeyManagerFactory kmf)
SslContextFactorykeyMananagerFactory in interface SslContextFactorykmf - the key manager factory instancepublic SslContextFactory trustManagerFactory(TrustManagerFactory tmf)
SslContextFactorytrustManagerFactory in interface SslContextFactorytmf - the trust manager factory instancepublic io.netty.handler.ssl.SslContext create()
throws SSLException
create in interface SslContextFactorySslContextSSLExceptionpublic SslContextFactory enabledCipherSuites(Set<String> enabledCipherSuites)
SslContextFactoryenabledCipherSuites in interface SslContextFactoryenabledCipherSuites - the set of cipher suitespublic SslContextFactory applicationProtocols(List<String> applicationProtocols)
SslContextFactoryapplicationProtocols in interface SslContextFactoryapplicationProtocols - this list of application protocolsCopyright © 2023 Eclipse. All rights reserved.