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. |
void |
addSslHandler(Channel channel,
SocketAddress remoteAddress,
boolean sslDebug) |
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) |
SslProvider.DefaultConfigurationType |
getDefaultConfigurationType()
Returns the configured default configuration type.
|
SslContext |
getSslContext()
Returns
SslContext instance with configured settings. |
int |
hashCode() |
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 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 SslContext getSslContext()
SslContext instance with configured settings.SslContext instance with configured settings.@Nullable public SslProvider.DefaultConfigurationType getDefaultConfigurationType()
public void configure(SslHandler sslHandler)
public void addSslHandler(Channel channel, @Nullable SocketAddress remoteAddress, boolean sslDebug)