Package io.javalin.community.ssl.util
Object SSLUtils
-
- All Implemented Interfaces:
public class SSLUtilsUtility class for SSL related tasks.
-
-
Method Summary
Modifier and Type Method Description final SslContextFactory.ServercreateSslContextFactory(SSLFactory sslFactory)Helper method to create a SslContextFactory from the SSLFactory. final SSLFactorygetSslFactory(SslConfig config)Helper method to create a SSLFactory from the given config. final SSLFactorygetSslFactory(SslConfig config, Boolean reloading)Helper method to create a SSLFactory from the given config. -
-
Method Detail
-
createSslContextFactory
final SslContextFactory.Server createSslContextFactory(SSLFactory sslFactory)
Helper method to create a SslContextFactory from the SSLFactory. This method is used to create the SSLContextFactory for the Jetty server as well as configure the resulting factory.
- Parameters:
sslFactory- The SSLFactory to use.- Returns:
The created SslContextFactory.
-
getSslFactory
final SSLFactory getSslFactory(SslConfig config)
Helper method to create a SSLFactory from the given config.
- Parameters:
config- The config to use.- Returns:
The created SSLFactory.
-
getSslFactory
final SSLFactory getSslFactory(SslConfig config, Boolean reloading)
Helper method to create a SSLFactory from the given config.
- Parameters:
config- The config to use.reloading- Whether the SSLFactory is being reloaded or is the first time.- Returns:
The created SSLFactory.
-
-
-
-