Package reactor.netty.tcp
Interface SslProvider.Builder
- Enclosing class:
- SslProvider
public static interface SslProvider.Builder
-
Method Summary
Modifier and TypeMethodDescriptionaddSniMapping(String domainName, Consumer<? super SslProvider.SslContextSpec> sslProviderBuilder) Adds a mapping for the given domain name to anSslProviderbuilder.addSniMappings(Map<String, Consumer<? super SslProvider.SslContextSpec>> confPerDomainName) Adds the provided mappings of domain names toSslProviderbuilders to the existing mappings.build()Builds new SslProvider.closeNotifyFlushTimeout(Duration closeNotifyFlushTimeout) Set the options to use for configuring SSL close_notify flush timeout.closeNotifyFlushTimeoutMillis(long closeNotifyFlushTimeoutMillis) Set the options to use for configuring SSL close_notify flush timeout.closeNotifyReadTimeout(Duration closeNotifyReadTimeout) Set the options to use for configuring SSL close_notify read timeout.closeNotifyReadTimeoutMillis(long closeNotifyReadTimeoutMillis) Set the options to use for configuring SSL close_notify read timeout.handlerConfigurator(Consumer<? super SslHandler> handlerConfigurator) Set a configurator callback to mutate any property from the providedSslHandler.handshakeTimeout(Duration handshakeTimeout) Set the options to use for configuring SSL handshake timeout.handshakeTimeoutMillis(long handshakeTimeoutMillis) Set the options to use for configuring SSL handshake timeout.serverNames(SNIServerName... serverNames) Sets the desiredSNIServerNames.setSniAsyncMappings(AsyncMapping<String, SslProvider> mappings) Sets the provided mappings of domain names toSslProvider.setSniMappings(Map<String, Consumer<? super SslProvider.SslContextSpec>> confPerDomainName) Sets the provided mappings of domain names toSslProviderbuilders.
-
Method Details
-
handlerConfigurator
Set a configurator callback to mutate any property from the providedSslHandler.- Parameters:
handlerConfigurator- A callback given the generatedSslHandler- Returns:
- this
-
handshakeTimeout
Set the options to use for configuring SSL handshake timeout. Default to 10000 ms.- Parameters:
handshakeTimeout- The timeoutDuration- Returns:
- this
-
handshakeTimeoutMillis
Set the options to use for configuring SSL handshake timeout. Default to 10000 ms.- Parameters:
handshakeTimeoutMillis- The timeout in milliseconds- Returns:
- this
-
closeNotifyFlushTimeout
Set the options to use for configuring SSL close_notify flush timeout. Default to 3000 ms.- Parameters:
closeNotifyFlushTimeout- The timeoutDuration- Returns:
- this
-
closeNotifyFlushTimeoutMillis
Set the options to use for configuring SSL close_notify flush timeout. Default to 3000 ms.- Parameters:
closeNotifyFlushTimeoutMillis- The timeout in milliseconds- Returns:
- this
-
closeNotifyReadTimeout
Set the options to use for configuring SSL close_notify read timeout. Default to 0 ms.- Parameters:
closeNotifyReadTimeout- The timeoutDuration- Returns:
- this
-
closeNotifyReadTimeoutMillis
Set the options to use for configuring SSL close_notify read timeout. Default to 0 ms.- Parameters:
closeNotifyReadTimeoutMillis- The timeout in milliseconds- Returns:
- this
-
addSniMapping
SslProvider.Builder addSniMapping(String domainName, Consumer<? super SslProvider.SslContextSpec> sslProviderBuilder) Adds a mapping for the given domain name to anSslProviderbuilder. 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.
- Parameters:
domainName- the domain name, it may contain wildcardsslProviderBuilder- anSslProviderbuilder for building theSslProvider- Returns:
- this
-
addSniMappings
SslProvider.Builder addSniMappings(Map<String, Consumer<? super SslProvider.SslContextSpec>> confPerDomainName) Adds the provided mappings of domain names toSslProviderbuilders 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.
- Parameters:
confPerDomainName- mappings of domain names toSslProviderbuilders- Returns:
- this
-
setSniMappings
SslProvider.Builder setSniMappings(Map<String, Consumer<? super SslProvider.SslContextSpec>> confPerDomainName) Sets the provided mappings of domain names toSslProviderbuilders. 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.
- Parameters:
confPerDomainName- mappings of domain names toSslProviderbuilders- Returns:
- this
-
setSniAsyncMappings
Sets the provided mappings of domain names toSslProvider.Note: This method is an alternative of
addSniMapping(String, Consumer),addSniMappings(Map)andsetSniMappings(Map).Note: This configuration is applicable only when configuring the server.
- Parameters:
mappings- mappings of domain names toSslProvider- Returns:
- this
- Since:
- 1.0.19
-
serverNames
Sets the desiredSNIServerNames. Note: This configuration is applicable only when configuring the client.- Parameters:
serverNames- the desiredSNIServerNames- Returns:
- this
-
build
SslProvider build()Builds new SslProvider.- Returns:
- builds new SslProvider
-