public final class SslProvider
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SslProvider.Builder |
static interface |
SslProvider.DefaultConfigurationSpec |
static class |
SslProvider.DefaultConfigurationType
Default configuration that will be applied to the provided
SslContextBuilder |
static interface |
SslProvider.SslContextSpec |
| Modifier and Type | Method and Description |
|---|---|
static SslProvider |
addHandlerConfigurator(SslProvider provider,
java.util.function.Consumer<? super io.netty.handler.ssl.SslHandler> handlerConfigurator)
Creates a new
SslProvider with a prepending handler
configurator callback to inject default settings to an existing provider
configuration. |
java.lang.String |
asDetailedString() |
java.lang.String |
asSimpleString() |
static SslProvider.SslContextSpec |
builder()
Creates a builder for
SslProvider |
void |
configure(io.netty.handler.ssl.SslHandler sslHandler) |
static SslProvider |
defaultClientProvider()
Return the default client ssl provider
|
static SslProvider |
findSslSupport(io.netty.bootstrap.Bootstrap b)
Find Ssl support in the given client bootstrap
|
static SslProvider |
findSslSupport(io.netty.bootstrap.ServerBootstrap b)
Find Ssl support in the given server bootstrap
|
SslProvider.DefaultConfigurationType |
getDefaultConfigurationType()
Returns the configured default configuration type.
|
io.netty.handler.ssl.SslContext |
getSslContext()
Returns
SslContext instance with configured settings. |
static io.netty.bootstrap.Bootstrap |
removeSslSupport(io.netty.bootstrap.Bootstrap b)
Remove Ssl support in the given client bootstrap
|
static io.netty.bootstrap.Bootstrap |
setBootstrap(io.netty.bootstrap.Bootstrap b,
SslProvider sslProvider)
Add Ssl support on the given client bootstrap
|
static io.netty.bootstrap.ServerBootstrap |
setBootstrap(io.netty.bootstrap.ServerBootstrap b,
SslProvider sslProvider) |
java.lang.String |
toString() |
static SslProvider |
updateDefaultConfiguration(SslProvider provider,
SslProvider.DefaultConfigurationType type) |
public static SslProvider.SslContextSpec builder()
SslProviderpublic static SslProvider addHandlerConfigurator(SslProvider provider, java.util.function.Consumer<? super io.netty.handler.ssl.SslHandler> handlerConfigurator)
SslProvider with a prepending handler
configurator callback to inject default settings to an existing provider
configuration.public static SslProvider updateDefaultConfiguration(SslProvider provider, SslProvider.DefaultConfigurationType type)
public static SslProvider defaultClientProvider()
public static io.netty.bootstrap.Bootstrap setBootstrap(io.netty.bootstrap.Bootstrap b,
SslProvider sslProvider)
b - a given bootstrap to enrich@Nullable public static SslProvider findSslSupport(io.netty.bootstrap.Bootstrap b)
b - a bootstrap to searchSslProvider found or null@Nullable public static SslProvider findSslSupport(io.netty.bootstrap.ServerBootstrap b)
b - a bootstrap to searchSslProvider found or nullpublic static io.netty.bootstrap.Bootstrap removeSslSupport(io.netty.bootstrap.Bootstrap b)
b - a bootstrap to search and removeBootstrappublic io.netty.handler.ssl.SslContext getSslContext()
SslContext instance with configured settings.SslContext instance with configured settings.@Nullable public SslProvider.DefaultConfigurationType getDefaultConfigurationType()
public void configure(io.netty.handler.ssl.SslHandler sslHandler)
public java.lang.String asSimpleString()
public java.lang.String asDetailedString()
public java.lang.String toString()
toString in class java.lang.Objectpublic static io.netty.bootstrap.ServerBootstrap setBootstrap(io.netty.bootstrap.ServerBootstrap b,
SslProvider sslProvider)