Bug 6023 - Adress for config subsystem netconf endpoint is not configurable
[netconf.git] / netconf / netconf-util / src / main / java / org / opendaylight / netconf / util / osgi / NetconfConfigurationHolder.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.netconf.util.osgi;
10
11 import java.net.InetSocketAddress;
12
13 final class NetconfConfigurationHolder {
14
15     private final InetSocketAddress tcpServerAddress;
16     private final InetSocketAddress sshServerAddress;
17     private final String privateKeyPath;
18
19     NetconfConfigurationHolder(InetSocketAddress tcpServerAddress, InetSocketAddress sshServerAddress, String privateKeyPath){
20         this.tcpServerAddress = tcpServerAddress;
21         this.sshServerAddress = sshServerAddress;
22         this.privateKeyPath = privateKeyPath;
23     }
24
25     String getPrivateKeyPath() {
26         return privateKeyPath;
27     }
28
29     InetSocketAddress getSshServerAddress() {
30         return sshServerAddress;
31     }
32
33     InetSocketAddress getTcpServerAddress() {
34         return tcpServerAddress;
35     }
36
37 }