X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fnetconf-topology-singleton%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Ftopology%2Fsingleton%2Fimpl%2Futils%2FNetconfTopologySetup.java;h=9ba578f7025b788502b9bc649bb6ff26e5626a98;hb=f9a0c88a73fe4ba7577c1d072251b8f286bbdd62;hp=cee8c0d80774b077665c771a27a36142439872b1;hpb=3a96a8000706c99343a6126dfdbdb0c46729377e;p=netconf.git diff --git a/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologySetup.java b/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologySetup.java index cee8c0d807..9ba578f702 100644 --- a/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologySetup.java +++ b/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologySetup.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -36,6 +36,8 @@ public class NetconfTopologySetup { private final String topologyId; private final NetconfDevice.SchemaResourcesDTO schemaResourceDTO; private final Duration idleTimeout; + private final String privateKeyPath; + private final String privateKeyPassphrase; private NetconfTopologySetup(final NetconfTopologySetupBuilder builder) { this.clusterSingletonServiceProvider = builder.getClusterSingletonServiceProvider(); @@ -51,6 +53,8 @@ public class NetconfTopologySetup { this.topologyId = builder.getTopologyId(); this.schemaResourceDTO = builder.getSchemaResourceDTO(); this.idleTimeout = builder.getIdleTimeout(); + this.privateKeyPath = builder.getPrivateKeyPath(); + this.privateKeyPassphrase = builder.getPrivateKeyPassphrase(); } public ClusterSingletonServiceProvider getClusterSingletonServiceProvider() { @@ -98,13 +102,21 @@ public class NetconfTopologySetup { } public NetconfDevice.SchemaResourcesDTO getSchemaResourcesDTO() { - return schemaResourceDTO; + return schemaResourceDTO; } public Duration getIdleTimeout() { return idleTimeout; } + public String getPrivateKeyPath() { + return privateKeyPath; + } + + public String getPrivateKeyPassphrase() { + return privateKeyPassphrase; + } + public static class NetconfTopologySetupBuilder { private ClusterSingletonServiceProvider clusterSingletonServiceProvider; @@ -120,8 +132,10 @@ public class NetconfTopologySetup { private NetconfClientDispatcher netconfClientDispatcher; private NetconfDevice.SchemaResourcesDTO schemaResourceDTO; private Duration idleTimeout; + private String privateKeyPath; + private String privateKeyPassphrase; - public NetconfTopologySetupBuilder(){ + public NetconfTopologySetupBuilder() { } private ClusterSingletonServiceProvider getClusterSingletonServiceProvider() { @@ -247,6 +261,24 @@ public class NetconfTopologySetup { return idleTimeout; } + public NetconfTopologySetupBuilder setPrivateKeyPath(String privateKeyPath) { + this.privateKeyPath = privateKeyPath; + return this; + } + + public String getPrivateKeyPath() { + return this.privateKeyPath; + } + + public NetconfTopologySetupBuilder setPrivateKeyPassphrase(String privateKeyPassphrase) { + this.privateKeyPassphrase = privateKeyPassphrase; + return this; + } + + public String getPrivateKeyPassphrase() { + return this.privateKeyPassphrase; + } + public static NetconfTopologySetupBuilder create() { return new NetconfTopologySetupBuilder(); }