public class SshProxy extends Object implements ProxyConnectionDataProvider
Modifier and Type | Field and Description |
---|---|
protected org.apache.sshd.client.SshClient |
sshClient |
protected org.apache.sshd.server.SshServer |
sshServer |
Constructor and Description |
---|
SshProxy(SshClientAndServerFactory sshClientAndServerFactory) |
Modifier and Type | Method and Description |
---|---|
void |
add(String proxyUserName,
ProxyConnectionData data) |
protected org.apache.sshd.server.command.CommandFactory |
createCommandFactory() |
Exception |
getClientInitializationException() |
ProxyConnectionData |
getConnectionData(String proxyUserName) |
String |
getHost() |
int |
getPort() |
static @Nullable SshProxy |
getRunningInstance() |
void |
remove(String proxyUserName) |
@Nullable SshProxy |
start() |
@Nullable SshProxy |
start(org.apache.sshd.common.channel.ChannelFactory factory) |
void |
stop() |
protected org.apache.sshd.server.SshServer sshServer
protected org.apache.sshd.client.SshClient sshClient
public SshProxy(SshClientAndServerFactory sshClientAndServerFactory)
@Nullable public static @Nullable SshProxy getRunningInstance()
@Nullable public @Nullable SshProxy start()
@Nullable public @Nullable SshProxy start(org.apache.sshd.common.channel.ChannelFactory factory)
public void stop()
public ProxyConnectionData getConnectionData(String proxyUserName)
getConnectionData
in interface ProxyConnectionDataProvider
public void remove(String proxyUserName)
public void add(String proxyUserName, ProxyConnectionData data)
protected org.apache.sshd.server.command.CommandFactory createCommandFactory()
public String getHost()
public int getPort()
public Exception getClientInitializationException()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.