Class SslPlugin

  • All Implemented Interfaces:

    
    public final class SslPlugin
    extends Plugin<SslConfig>
                        

    Plugin to add SSL support to Javalin. The configuration is done via the Consumer<SslConfig> passed to the constructor. The plugin will add the connectors to the server and apply the necessary handlers.

    If you want to reload the SSLContextFactory, you can call the reload method, by keeping a reference to the plugin instance.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onStart(JavalinConfig config)
      String name()
      final Unit reload(Consumer<SslConfig> newConfig) Reload the SSL configuration with the new certificates and/or keys.
      • Methods inherited from class io.javalin.plugin.Plugin

        onInitialize, priority, repeatable
      • Methods inherited from class java.lang.Object

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