2 * Copyright (c) 2023 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.transport.ssh;
10 import org.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.netconf.shaded.sshd.client.ClientFactoryManager;
12 import org.opendaylight.netconf.transport.api.UnsupportedConfigurationException;
15 * Extension interface allowing one to customize {@link ClientFactoryManager} before it is used to create the
16 * {@link SSHClient} instance.
19 public interface ClientFactoryManagerConfigurator {
21 * Apply custom configuration.
23 * @param factoryManager client factory manager instance
24 * @throws UnsupportedConfigurationException if the configuration is not acceptable
26 void configureClientFactoryManager(@NonNull ClientFactoryManager factoryManager)
27 throws UnsupportedConfigurationException;