SslPlugin

class SslPlugin(userConfig: Consumer<SslConfig>) : Plugin<SslConfig>

Plugin to add SSL support to Javalin. The configuration is done via the Consumer 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.

Constructors

Link copied to clipboard
constructor(userConfig: Consumer<SslConfig>)

Functions

Link copied to clipboard
open override fun name(): String
Link copied to clipboard
open fun onInitialize(config: JavalinConfig)
Link copied to clipboard
open override fun onStart(config: JavalinConfig)
Link copied to clipboard
open fun priority(): PluginPriority
Link copied to clipboard
fun reload(newConfig: Consumer<SslConfig>)

Reload the SSL configuration with the new certificates and/or keys.

Link copied to clipboard
open fun repeatable(): Boolean