aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@oath.com>2018-08-29 23:30:15 +0200
committerValerij Fredriksen <valerij92@gmail.com>2018-08-29 23:38:10 +0200
commitdfd91daccd51f8dca03ae39f5533776776c2744f (patch)
tree563a6f65ae90c1cae856e7ed8b70b95a18ce3843 /node-admin
parent7cb1dfb0f051e84d7e988a0fa3e10c17f51f16f8 (diff)
Remove unused class
Diffstat (limited to 'node-admin')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/KeyStoreOptions.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/KeyStoreOptions.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/KeyStoreOptions.java
deleted file mode 100644
index 03aff7f22d8..00000000000
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/util/KeyStoreOptions.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.hosted.node.admin.util;
-
-import com.yahoo.vespa.athenz.tls.KeyStoreBuilder;
-import com.yahoo.vespa.athenz.tls.KeyStoreType;
-import com.yahoo.vespa.athenz.tls.KeyStoreUtils;
-
-import java.nio.file.Path;
-import java.security.KeyStore;
-
-public class KeyStoreOptions {
- public final Path path;
- public final char[] password;
- public final KeyStoreType keyStoreType;
-
- public KeyStoreOptions(Path path, char[] password, String type) {
- this.path = path;
- this.password = password;
- this.keyStoreType = KeyStoreType.valueOf(type);
- }
-
- public KeyStore loadKeyStore() {
- return KeyStoreBuilder
- .withType(keyStoreType)
- .fromFile(path.toFile(), password)
- .build();
- }
-
- public void storeKeyStore(KeyStore keyStore) {
- KeyStoreUtils.writeKeyStoreToFile(keyStore, path.toFile(), password);
- }
-}