2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowjava.protocol.impl.clients;
11 import java.io.InputStream;
14 * Class for storing keys
16 * @author michal.polkorab
18 public final class ClientSslKeyStore {
20 private static final String filename = "/selfSignedSwitch";
23 * InputStream instance of key
25 * @return key as InputStream
27 public static InputStream asInputStream() {
28 InputStream in = ClientSslKeyStore.class.getResourceAsStream(filename);
30 throw new IllegalStateException("KeyStore file not found: " + filename);
36 * @return certificate password as char[]
38 public static char[] getCertificatePassword() {
39 return "opendaylight".toCharArray();
43 * @return KeyStore password as char[]
45 public static char[] getKeyStorePassword() {
46 return "opendaylight".toCharArray();