public static interface SslProvider.Builder
Modifier and Type | Method and Description |
---|---|
SslProvider.Builder |
addSniMapping(String domainName,
java.util.function.Consumer<? super SslProvider.SslContextSpec> sslProviderBuilder)
Adds a mapping for the given domain name to an
SslProvider builder. |
SslProvider.Builder |
addSniMappings(Map<String,java.util.function.Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
Adds the provided mappings of domain names to
SslProvider builders to the existing mappings. |
SslProvider |
build()
Builds new SslProvider
|
SslProvider.Builder |
closeNotifyFlushTimeout(java.time.Duration closeNotifyFlushTimeout)
Set the options to use for configuring SSL close_notify flush timeout.
|
SslProvider.Builder |
closeNotifyFlushTimeoutMillis(long closeNotifyFlushTimeoutMillis)
Set the options to use for configuring SSL close_notify flush timeout.
|
SslProvider.Builder |
closeNotifyReadTimeout(java.time.Duration closeNotifyReadTimeout)
Set the options to use for configuring SSL close_notify read timeout.
|
SslProvider.Builder |
closeNotifyReadTimeoutMillis(long closeNotifyReadTimeoutMillis)
Set the options to use for configuring SSL close_notify read timeout.
|
SslProvider.Builder |
handlerConfigurator(java.util.function.Consumer<? super SslHandler> handlerConfigurator)
Set a configurator callback to mutate any property from the provided
SslHandler |
SslProvider.Builder |
handshakeTimeout(java.time.Duration handshakeTimeout)
Set the options to use for configuring SSL handshake timeout.
|
SslProvider.Builder |
handshakeTimeoutMillis(long handshakeTimeoutMillis)
Set the options to use for configuring SSL handshake timeout.
|
SslProvider.Builder |
serverNames(SNIServerName... serverNames)
Sets the desired
SNIServerName s. |
SslProvider.Builder |
setSniMappings(Map<String,java.util.function.Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
Sets the provided mappings of domain names to
SslProvider builders. |
SslProvider.Builder handlerConfigurator(java.util.function.Consumer<? super SslHandler> handlerConfigurator)
SslHandler
handlerConfigurator
- A callback given the generated SslHandler
SslProvider.Builder handshakeTimeout(java.time.Duration handshakeTimeout)
handshakeTimeout
- The timeout Duration
SslProvider.Builder handshakeTimeoutMillis(long handshakeTimeoutMillis)
handshakeTimeoutMillis
- The timeout in millisecondsSslProvider.Builder closeNotifyFlushTimeout(java.time.Duration closeNotifyFlushTimeout)
closeNotifyFlushTimeout
- The timeout Duration
SslProvider.Builder closeNotifyFlushTimeoutMillis(long closeNotifyFlushTimeoutMillis)
closeNotifyFlushTimeoutMillis
- The timeout in millisecondsSslProvider.Builder closeNotifyReadTimeout(java.time.Duration closeNotifyReadTimeout)
closeNotifyReadTimeout
- The timeout Duration
SslProvider.Builder closeNotifyReadTimeoutMillis(long closeNotifyReadTimeoutMillis)
closeNotifyReadTimeoutMillis
- The timeout in millisecondsSslProvider.Builder addSniMapping(String domainName, java.util.function.Consumer<? super SslProvider.SslContextSpec> sslProviderBuilder)
SslProvider
builder.
If a mapping already exists, it will be overridden.
Note: This configuration is applicable only when configuring the server.domainName
- the domain name, it may contain wildcardsslProviderBuilder
- an SslProvider
builder for building the SslProvider
SslProvider.Builder addSniMappings(Map<String,java.util.function.Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
SslProvider
builders to the existing mappings.
If a mapping already exists, it will be overridden.
Note: This configuration is applicable only when configuring the server.confPerDomainName
- mappings of domain names to SslProvider
buildersSslProvider.Builder setSniMappings(Map<String,java.util.function.Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
SslProvider
builders.
The existing mappings will be removed.
Note: This configuration is applicable only when configuring the server.confPerDomainName
- mappings of domain names to SslProvider
buildersSslProvider.Builder serverNames(SNIServerName... serverNames)
SNIServerName
s.
Note: This configuration is applicable only when configuring the client.serverNames
- the desired SNIServerName
sSslProvider build()