summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-09-12 12:14:00 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2018-09-12 12:14:00 +0200
commit3ac0420f32e9841bd53705603ab7f9a67a8c8700 (patch)
tree4d60f82c2005b8f4836a74c7b26510d7181e91fd /controller-server
parentc9a3e05f486f7dde2a4f7895a8adcfd54518c108 (diff)
Remove unused class
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzTrustStoreConfigurator.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzTrustStoreConfigurator.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzTrustStoreConfigurator.java
deleted file mode 100644
index e805332429b..00000000000
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/athenz/filter/AthenzTrustStoreConfigurator.java
+++ /dev/null
@@ -1,39 +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.vespa.hosted.controller.athenz.filter;
-
-import com.google.inject.Inject;
-import com.yahoo.jdisc.http.ssl.SslTrustStoreConfigurator;
-import com.yahoo.jdisc.http.ssl.SslTrustStoreContext;
-import com.yahoo.security.KeyStoreBuilder;
-import com.yahoo.security.KeyStoreType;
-import com.yahoo.vespa.hosted.controller.athenz.config.AthenzConfig;
-
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.security.KeyStore;
-
-/**
- * Load trust store with Athenz CA certificates
- *
- * @author bjorncs
- */
-public class AthenzTrustStoreConfigurator implements SslTrustStoreConfigurator {
-
- private final KeyStore trustStore;
-
- @Inject
- public AthenzTrustStoreConfigurator(AthenzConfig config) {
- this.trustStore = createTrustStore(Paths.get(config.athenzCaTrustStore()));
- }
-
- private static KeyStore createTrustStore(Path trustStoreFile) {
- return KeyStoreBuilder.withType(KeyStoreType.JKS)
- .fromFile(trustStoreFile, "changeit".toCharArray())
- .build();
- }
-
- @Override
- public void configure(SslTrustStoreContext context) {
- context.updateTrustStore(trustStore);
- }
-}