Make netconf utilize encrypted passwords only
[netconf.git] / netconf / callhome-provider / src / main / java / org / opendaylight / netconf / callhome / mount / CallHomeTopology.java
1 /*
2  * Copyright (c) 2016 Brocade Communication Systems 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.callhome.mount;
10
11 import io.netty.util.concurrent.EventExecutor;
12 import org.opendaylight.aaa.encrypt.AAAEncryptionService;
13 import org.opendaylight.controller.config.threadpool.ScheduledThreadPool;
14 import org.opendaylight.controller.config.threadpool.ThreadPool;
15 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
16 import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService;
17 import org.opendaylight.netconf.client.NetconfClientDispatcher;
18 import org.opendaylight.netconf.sal.connect.api.RemoteDeviceHandler;
19 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfSessionPreferences;
20 import org.opendaylight.netconf.sal.connect.netconf.sal.NetconfDeviceSalFacade;
21 import org.opendaylight.netconf.sal.connect.util.RemoteDeviceId;
22 import org.opendaylight.netconf.topology.api.SchemaRepositoryProvider;
23
24 public class CallHomeTopology extends BaseCallHomeTopology {
25
26     public CallHomeTopology(final String topologyId, final NetconfClientDispatcher clientDispatcher,
27             final EventExecutor eventExecutor, final ScheduledThreadPool keepaliveExecutor,
28             final ThreadPool processingExecutor, final SchemaRepositoryProvider schemaRepositoryProvider,
29             final DataBroker dataBroker, final DOMMountPointService mountPointService,
30             final AAAEncryptionService encryptionService) {
31         super(topologyId, clientDispatcher, eventExecutor, keepaliveExecutor, processingExecutor,
32                 schemaRepositoryProvider, dataBroker, mountPointService, encryptionService);
33     }
34
35     @Override
36     protected RemoteDeviceHandler<NetconfSessionPreferences> createSalFacade(final RemoteDeviceId id) {
37         return new NetconfDeviceSalFacade(id, mountPointService, dataBroker);
38     }
39 }