2 * Copyright (c) 2022 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;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.kohsuke.MetaInfServices;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ssh.client.rev231228.ClientIdentHostbased;
14 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ssh.client.rev231228.ClientIdentPassword;
15 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ssh.client.rev231228.ClientIdentPublickey;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ssh.client.rev231228.IetfSshClientData;
17 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.ssh.client.rev231228.SshClientKeepalives;
18 import org.opendaylight.yangtools.yang.binding.YangFeature;
19 import org.opendaylight.yangtools.yang.binding.YangFeatureProvider;
22 * Client features supported by SSH transport.
26 public final class IetfSshClientProvider implements YangFeatureProvider<IetfSshClientData> {
28 public Class<IetfSshClientData> boundModule() {
29 return IetfSshClientData.class;
33 public Set<? extends YangFeature<?, IetfSshClientData>> supportedFeatures() {
34 // client identification `None` is not supported (not recommended in server yang)
36 ClientIdentPassword.VALUE,
37 ClientIdentPublickey.VALUE,
38 ClientIdentHostbased.VALUE,
39 SshClientKeepalives.VALUE);