diff options
author | Bjørn Christian Seime <bjorn.christian@seime.no> | 2017-10-19 15:21:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 15:21:32 +0200 |
commit | b2bca50263aa1a7dbd3c30b932296507bce0db7a (patch) | |
tree | 9e428c947b0636ab431bc7f7aa5ca52e82a6f8e6 | |
parent | cb8b810a5d26a970177c3ef357c253450762532b (diff) | |
parent | dca1e05b7a15a3a0ae8f1b5f8b533eb990be1a96 (diff) |
Merge pull request #3824 from vespa-engine/revert-3724-bjorncs/add-back-keystore-component
Revert "Add back SslKeyStoreFactoryProvider as a temporary workaround"
3 files changed, 0 insertions, 57 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java index 77029360593..4eb611a1dbe 100755 --- a/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java @@ -220,7 +220,6 @@ public final class ContainerCluster addSimpleComponent(com.yahoo.concurrent.classlock.ClassLocking.class); addSimpleComponent("com.yahoo.jdisc.http.filter.SecurityFilterInvoker"); addSimpleComponent(SIMPLE_LINGUISTICS_PROVIDER); - addSimpleComponent("com.yahoo.container.jdisc.SslKeyStoreFactoryProvider"); addSimpleComponent("com.yahoo.container.jdisc.SecretStoreProvider"); addSimpleComponent("com.yahoo.container.jdisc.CertificateStoreProvider"); addSimpleComponent("com.yahoo.container.jdisc.metric.MetricConsumerProviderProvider"); 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 64773af905e..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"); - } - - } - -} diff --git a/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/ssl/SslKeyStoreFactory.java b/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/ssl/SslKeyStoreFactory.java deleted file mode 100644 index 6bffd080cf9..00000000000 --- a/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/ssl/SslKeyStoreFactory.java +++ /dev/null @@ -1,15 +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.jdisc.http.ssl; - -/** - * A factory for SSL key stores. - * - * @author bratseth - */ -public interface SslKeyStoreFactory { - - SslKeyStore createKeyStore(ReaderForPath certificateFile, ReaderForPath keyFile); - - SslKeyStore createTrustStore(ReaderForPath certificateFile); - -} |