// 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 java.nio.file.Path;

public class KeyStoreOptions {
    public final Path path;
    public final char[] password;
    public final String type;

    public KeyStoreOptions(Path path, char[] password, String type) {
        this.path = path;
        this.password = password;
        this.type = type;
    }
}

@@ -177,303 +177,974 @@
 ava.
-nio.file.Path;%0A%0Apublic class KeyStoreOptions %7B%0A    public final Path path;%0A    public final char%5B%5D password;%0A    public final String type;%0A%0A    public KeyStoreOptions(Path path, char%5B%5D password, String type) %7B%0A        this.path = path;%0A        this.password = password;%0A        this.type = type;
+io.FileInputStream;%0Aimport java.io.IOException;%0Aimport java.nio.file.Path;%0Aimport java.security.KeyStore;%0Aimport java.security.KeyStoreException;%0Aimport java.security.NoSuchAlgorithmException;%0Aimport java.security.NoSuchProviderException;%0Aimport java.security.cert.CertificateException;%0A%0Apublic class KeyStoreOptions %7B%0A    public final Path path;%0A    public final char%5B%5D password;%0A    public final String type;%0A%0A    public KeyStoreOptions(Path path, char%5B%5D password, String type) %7B%0A        this.path = path;%0A        this.password = password;%0A        this.type = type;%0A    %7D%0A%0A    public KeyStore loadKeyStoreWithBcProvider()%0A            throws IOException, NoSuchProviderException, KeyStoreException, CertificateException, NoSuchAlgorithmException %7B%0A        try (FileInputStream in = new FileInputStream(path.toFile())) %7B%0A            KeyStore keyStore = KeyStore.getInstance(type, %22BC%22);%0A            keyStore.load(in, password);%0A            return keyStore;%0A        %7D
 %0A   

Add method to read KeyStore with BC provider to KeyStoreOptions