Class SslServerCustomizer

java.lang.Object
org.springframework.boot.reactor.netty.SslServerCustomizer
All Implemented Interfaces:
Function<reactor.netty.http.server.HttpServer, reactor.netty.http.server.HttpServer>, NettyServerCustomizer

public class SslServerCustomizer extends Object implements NettyServerCustomizer
NettyServerCustomizer that configures SSL for the given Reactor Netty server instance.
Since:
4.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    SslServerCustomizer(@Nullable org.springframework.boot.web.server.Http2 http2, @Nullable org.springframework.boot.web.server.Ssl.ClientAuth clientAuth, org.springframework.boot.ssl.SslBundle sslBundle, Map<String, org.springframework.boot.ssl.SslBundle> serverNameSslBundles)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.netty.http.server.HttpServer
    apply(reactor.netty.http.server.HttpServer server)
     
    protected final reactor.netty.tcp.AbstractProtocolSslContextSpec<?>
    createSslContextSpec(org.springframework.boot.ssl.SslBundle sslBundle)
    Create an AbstractProtocolSslContextSpec for a given SslBundle.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Function

    andThen, compose
  • Constructor Details

    • SslServerCustomizer

      public SslServerCustomizer(@Nullable org.springframework.boot.web.server.Http2 http2, @Nullable org.springframework.boot.web.server.Ssl.ClientAuth clientAuth, org.springframework.boot.ssl.SslBundle sslBundle, Map<String, org.springframework.boot.ssl.SslBundle> serverNameSslBundles)
  • Method Details

    • apply

      public reactor.netty.http.server.HttpServer apply(reactor.netty.http.server.HttpServer server)
      Specified by:
      apply in interface Function<reactor.netty.http.server.HttpServer, reactor.netty.http.server.HttpServer>
    • createSslContextSpec

      protected final reactor.netty.tcp.AbstractProtocolSslContextSpec<?> createSslContextSpec(org.springframework.boot.ssl.SslBundle sslBundle)
      Create an AbstractProtocolSslContextSpec for a given SslBundle.
      Parameters:
      sslBundle - the SslBundle to use
      Returns:
      an AbstractProtocolSslContextSpec instance