2 * Copyright (c) 2019 PANTHEON.tech, 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
8 package org.opendaylight.netconf.nettyutil.handler.ssh.client;
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.netconf.shaded.sshd.client.SshClient;
12 import org.opendaylight.netconf.shaded.sshd.common.Factory;
15 * An extension to {@link SshClient} which uses {@link NetconfSessionFactory} to create sessions (leading towards
16 * {@link NetconfClientSessionImpl}.
19 public class NetconfSshClient extends SshClient {
20 public static final Factory<SshClient> DEFAULT_NETCONF_SSH_CLIENT_FACTORY = NetconfSshClient::new;
23 protected NetconfSessionFactory createSessionFactory() {
24 return new NetconfSessionFactory(this);