aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java')
-rw-r--r--container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java b/container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java
new file mode 100644
index 00000000000..c364116e0af
--- /dev/null
+++ b/container-core/src/main/java/com/yahoo/jdisc/http/ssl/SslContextFactoryProvider.java
@@ -0,0 +1,21 @@
+// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.jdisc.http.ssl;
+
+import org.eclipse.jetty.util.ssl.SslContextFactory;
+
+/**
+ * A provider that is used to configure SSL connectors in JDisc
+ *
+ * @author bjorncs
+ */
+public interface SslContextFactoryProvider extends AutoCloseable {
+
+ /**
+ * This method is called once for each SSL connector.
+ *
+ * @return returns an instance of {@link SslContextFactory} for a given JDisc http server
+ */
+ SslContextFactory getInstance(String containerId, int port);
+
+ @Override default void close() {}
+}