Package io.javalin.community.ssl.util
Class SSLUtils
java.lang.Object
io.javalin.community.ssl.util.SSLUtils
Utility class for SSL related tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jetty.util.ssl.SslContextFactory.ServercreateSslContextFactory(SSLConfig config) Helper method to create aSslContextFactoryfrom the given config.static voidparseIdentity(SSLConfig config, nl.altindag.ssl.SSLFactory.Builder builder) Helper method to parse the given config and add Identity Material to the given builder.
-
Constructor Details
-
SSLUtils
public SSLUtils()
-
-
Method Details
-
createSslContextFactory
public static org.eclipse.jetty.util.ssl.SslContextFactory.Server createSslContextFactory(SSLConfig config) Helper method to create aSslContextFactoryfrom the given config.- Parameters:
config- The config to use.- Returns:
- The created
SslContextFactory.
-
parseIdentity
public static void parseIdentity(SSLConfig config, nl.altindag.ssl.SSLFactory.Builder builder) throws SSLConfigException Helper method to parse the given config and add Identity Material to the given builder.- Parameters:
config- The config to use.- Throws:
SSLConfigException- if the key configuration is invalid.
-