Class AcmeSSLContextBuilder

java.lang.Object
io.micronaut.acme.ssl.AcmeSSLContextBuilder
All Implemented Interfaces:
io.micronaut.http.server.netty.ssl.ServerSslBuilder

@Singleton @Replaces(io.micronaut.http.server.netty.ssl.CertificateProvidedSslBuilder.class) public class AcmeSSLContextBuilder extends Object implements io.micronaut.http.server.netty.ssl.ServerSslBuilder
The Netty implementation of ServerSslBuilder that generates an SslContext to create a server handler with to SSL support via a temporary self signed certificate that will be replaced by an ACME certificate once acquired.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AcmeSSLContextBuilder(io.micronaut.http.ssl.ServerSslConfiguration ssl)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<io.netty.handler.ssl.SslContext>
    Generates an SslContext that has an already expired self signed cert that should be replaced almost immediately by the ACME server once it is downloaded.
    io.micronaut.http.ssl.ServerSslConfiguration
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface io.micronaut.http.server.netty.ssl.ServerSslBuilder

    buildQuic
  • Constructor Details

    • AcmeSSLContextBuilder

      public AcmeSSLContextBuilder(io.micronaut.http.ssl.ServerSslConfiguration ssl)
      Parameters:
      ssl - The SSL configuration
  • Method Details

    • getSslConfiguration

      public io.micronaut.http.ssl.ServerSslConfiguration getSslConfiguration()
      Specified by:
      getSslConfiguration in interface io.micronaut.http.server.netty.ssl.ServerSslBuilder
    • build

      public Optional<io.netty.handler.ssl.SslContext> build()
      Generates an SslContext that has an already expired self signed cert that should be replaced almost immediately by the ACME server once it is downloaded.
      Specified by:
      build in interface io.micronaut.http.server.netty.ssl.ServerSslBuilder
      Returns:
      Optional SslContext