public static interface SslProvider.Builder
Modifier and Type | Method and Description |
---|---|
SslProvider.Builder |
addSniMapping(String domainName,
Consumer<? super SslProvider.SslContextSpec> sslProviderBuilder)
Adds a mapping for the given domain name to an
SslProvider builder. |
SslProvider.Builder |
addSniMappings(Map<String,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(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(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(Consumer<? super SslHandler> handlerConfigurator)
Set a configurator callback to mutate any property from the provided
SslHandler . |
SslProvider.Builder |
handshakeTimeout(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 |
setSniAsyncMappings(AsyncMapping<String,SslProvider> mappings)
Sets the provided mappings of domain names to
SslProvider . |
SslProvider.Builder |
setSniMappings(Map<String,Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
Sets the provided mappings of domain names to
SslProvider builders. |
SslProvider.Builder handlerConfigurator(Consumer<? super SslHandler> handlerConfigurator)
SslHandler
.handlerConfigurator
- A callback given the generated SslHandler
SslProvider.Builder handshakeTimeout(Duration handshakeTimeout)
handshakeTimeout
- The timeout Duration
SslProvider.Builder handshakeTimeoutMillis(long handshakeTimeoutMillis)
handshakeTimeoutMillis
- The timeout in millisecondsSslProvider.Builder closeNotifyFlushTimeout(Duration closeNotifyFlushTimeout)
closeNotifyFlushTimeout
- The timeout Duration
SslProvider.Builder closeNotifyFlushTimeoutMillis(long closeNotifyFlushTimeoutMillis)
closeNotifyFlushTimeoutMillis
- The timeout in millisecondsSslProvider.Builder closeNotifyReadTimeout(Duration closeNotifyReadTimeout)
closeNotifyReadTimeout
- The timeout Duration
SslProvider.Builder closeNotifyReadTimeoutMillis(long closeNotifyReadTimeoutMillis)
closeNotifyReadTimeoutMillis
- The timeout in millisecondsSslProvider.Builder addSniMapping(String domainName, Consumer<? super SslProvider.SslContextSpec> sslProviderBuilder)
SslProvider
builder.
If a mapping already exists, it will be overridden.
Note: This method is a sync alternative of setSniAsyncMappings(AsyncMapping)
,
which removes the async mappings.
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,Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
SslProvider
builders to the existing mappings.
If a mapping already exists, it will be overridden.
Note: This method is a sync alternative of setSniAsyncMappings(AsyncMapping)
,
which removes the async mappings.
Note: This configuration is applicable only when configuring the server.
confPerDomainName
- mappings of domain names to SslProvider
buildersSslProvider.Builder setSniMappings(Map<String,Consumer<? super SslProvider.SslContextSpec>> confPerDomainName)
SslProvider
builders.
The existing mappings will be removed.
Note: This method is a sync alternative of setSniAsyncMappings(AsyncMapping)
,
which removes the async mappings.
Note: This configuration is applicable only when configuring the server.
confPerDomainName
- mappings of domain names to SslProvider
buildersSslProvider.Builder setSniAsyncMappings(AsyncMapping<String,SslProvider> mappings)
SslProvider
.
Note: This method is an alternative of addSniMapping(String, Consumer)
,
addSniMappings(Map)
and setSniMappings(Map)
.
Note: This configuration is applicable only when configuring the server.
mappings
- mappings of domain names to SslProvider
SslProvider.Builder serverNames(SNIServerName... serverNames)
SNIServerName
s.
Note: This configuration is applicable only when configuring the client.serverNames
- the desired SNIServerName
sSslProvider build()