summaryrefslogtreecommitdiffstats
path: root/container-disc
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-10-06 17:11:45 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2017-10-09 10:54:43 +0200
commit002861a2b09d6e1899bebda11eeeac66c164b82a (patch)
tree6949d7af29b57fa2099d464933c5c4b69ac3c83b /container-disc
parent37948412c0e3d0170250989a886c44b274e34fc9 (diff)
Open-source PEM keystore for JDisc
Diffstat (limited to 'container-disc')
-rw-r--r--container-disc/src/main/java/com/yahoo/container/jdisc/SslKeyStoreFactoryProvider.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/SslKeyStoreFactoryProvider.java b/container-disc/src/main/java/com/yahoo/container/jdisc/SslKeyStoreFactoryProvider.java
deleted file mode 100644
index 8f760fcfab1..00000000000
--- a/container-disc/src/main/java/com/yahoo/container/jdisc/SslKeyStoreFactoryProvider.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.container.jdisc;
-
-import com.yahoo.container.di.componentgraph.Provider;
-import com.yahoo.jdisc.http.ssl.ReaderForPath;
-import com.yahoo.jdisc.http.ssl.SslKeyStore;
-import com.yahoo.jdisc.http.ssl.SslKeyStoreFactory;
-
-/**
- * An SSL key store provider which provides a factory which throws exception on
- * invocation - as no SSL key store is currently provided by default.
- * The purpose of this is to provide a ssl store factory for injection in the case where
- * no secret store component is provided.
- *
- * @author bratseth
- */
-public class SslKeyStoreFactoryProvider implements Provider<SslKeyStoreFactory> {
-
- private static final ThrowingSslKeyStoreFactory instance = new ThrowingSslKeyStoreFactory();
-
- @Override
- public SslKeyStoreFactory get() { return instance; }
-
- @Override
- public void deconstruct() { }
-
- private static final class ThrowingSslKeyStoreFactory implements SslKeyStoreFactory {
-
- @Override
- public SslKeyStore createKeyStore(ReaderForPath certificateFile, ReaderForPath keyFile) {
- throw new UnsupportedOperationException("A SSL key store factory component is not available");
- }
-
- @Override
- public SslKeyStore createTrustStore(ReaderForPath certificateFile) {
- throw new UnsupportedOperationException("A SSL key store factory component is not available");
- }
-
- }
-
-}