Introduce TransportSsh{Client,Server} 33/107933/6
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 20 Sep 2023 15:42:26 +0000 (17:42 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Sep 2023 09:44:50 +0000 (11:44 +0200)
commit365aed52180e186698f823888add0147bc8c82ef
treeff73fec3a3a132147e7d64e1ab2b9a84ba2e0961
parent4e6d5b5fb8c2aa9d428a9361d54f5113fb4f9a59
Introduce TransportSsh{Client,Server}

We are using both SshClient and SshServer, configuring them extensively,
but we never start them.

Introduce proper specializations of SshClient and SshServer, which do
not allow themselves to be start or stopped. Strictly instantiate them
through provided builders, which also serve as hosts for configuration
adaptation.

This reduces clutter in SSH{Client,Server}, making them single-page
classes. Another benefit is that the consistency of SshClient/SshServer
is now checked, with defaults being correctly applied.

JIRA: NETCONF-590
Change-Id: If68714c21fe06de84cdff743c59c08f0f96f884c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
transport/transport-ssh/pom.xml
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/ConfigUtils.java
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/SSHClient.java
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/SSHServer.java
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/TransportSshClient.java [new file with mode: 0644]
transport/transport-ssh/src/main/java/org/opendaylight/netconf/transport/ssh/TransportSshServer.java [new file with mode: 0644]