2 * Copyright (c) 2016 Cisco Systems, Inc. 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.netconf.util;
11 import java.net.InetSocketAddress;
13 final class NetconfConfigurationHolder {
15 private final InetSocketAddress tcpServerAddress;
16 private final InetSocketAddress sshServerAddress;
17 private final String privateKeyPath;
19 NetconfConfigurationHolder(final InetSocketAddress tcpServerAddress,
20 final InetSocketAddress sshServerAddress,
21 final String privateKeyPath) {
22 this.tcpServerAddress = tcpServerAddress;
23 this.sshServerAddress = sshServerAddress;
24 this.privateKeyPath = privateKeyPath;
27 String getPrivateKeyPath() {
28 return privateKeyPath;
31 InetSocketAddress getSshServerAddress() {
32 return sshServerAddress;
35 InetSocketAddress getTcpServerAddress() {
36 return tcpServerAddress;