public final class SslProvider extends 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 SslHandler> handlerConfigurator)
Creates a new
SslProvider with a prepending handler
configurator callback to inject default settings to an existing provider
configuration. |
String |
asDetailedString() |
String |
asSimpleString() |
static SslProvider.SslContextSpec |
builder()
Creates a builder for
SslProvider |
void |
configure(SslHandler sslHandler) |
static SslProvider |
defaultClientProvider()
Return the default client ssl provider
|
boolean |
equals(Object o) |
static SslProvider |
findSslSupport(Bootstrap b)
Find Ssl support in the given client bootstrap
|
static SslProvider |
findSslSupport(ServerBootstrap b)
Find Ssl support in the given server bootstrap
|
SslProvider.DefaultConfigurationType |
getDefaultConfigurationType()
Returns the configured default configuration type.
|
SslContext |
getSslContext()
Returns
SslContext instance with configured settings. |
int |
hashCode() |
static Bootstrap |
removeSslSupport(Bootstrap b)
Remove Ssl support in the given client bootstrap
|
static Bootstrap |
setBootstrap(Bootstrap b,
SslProvider sslProvider)
Add Ssl support on the given client bootstrap
|
static ServerBootstrap |
setBootstrap(ServerBootstrap b,
SslProvider sslProvider) |
String |
toString() |
static SslProvider |
updateDefaultConfiguration(SslProvider provider,
SslProvider.DefaultConfigurationType type) |
public static SslProvider.SslContextSpec builder()
SslProvider
public static SslProvider addHandlerConfigurator(SslProvider provider, java.util.function.Consumer<? super 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 Bootstrap setBootstrap(Bootstrap b, SslProvider sslProvider)
b
- a given bootstrap to enrich@Nullable public static SslProvider findSslSupport(Bootstrap b)
b
- a bootstrap to searchSslProvider
found or null@Nullable public static SslProvider findSslSupport(ServerBootstrap b)
b
- a bootstrap to searchSslProvider
found or nullpublic static Bootstrap removeSslSupport(Bootstrap b)
b
- a bootstrap to search and removeBootstrap
public SslContext getSslContext()
SslContext
instance with configured settings.SslContext
instance with configured settings.@Nullable public SslProvider.DefaultConfigurationType getDefaultConfigurationType()
public void configure(SslHandler sslHandler)
public String asSimpleString()
public String asDetailedString()
public static ServerBootstrap setBootstrap(ServerBootstrap b, SslProvider sslProvider)