public final class SslContextFactory
extends java.lang.Object
SslContext
s.Modifier and Type | Method and Description |
---|---|
static io.netty.handler.ssl.SslContext |
forClient(ReadOnlyClientSecurityConfig config,
java.util.List<java.lang.String> supportedAlpnProtocols)
A new context for a client using the passed
config . |
static io.netty.handler.ssl.SslContext |
forServer(ReadOnlyServerSecurityConfig config,
java.util.List<java.lang.String> supportedAlpnProtocols)
A new context for a server using the passed
config . |
public static io.netty.handler.ssl.SslContext forClient(ReadOnlyClientSecurityConfig config, java.util.List<java.lang.String> supportedAlpnProtocols)
config
.config
- SSL config.supportedAlpnProtocols
- the list of supported ALPN protocols.SslContext
for a client.public static io.netty.handler.ssl.SslContext forServer(ReadOnlyServerSecurityConfig config, java.util.List<java.lang.String> supportedAlpnProtocols)
config
.config
- SSL config.supportedAlpnProtocols
- the list of supported ALPN protocols.SslContext
for a server.