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.CommandFactory |
createCommandFactory() |
Exception |
getClientInitializationException() |
ProxyConnectionData |
getConnectionData(String proxyUserName) |
String |
getHost() |
int |
getPort() |
static SshProxy |
getRunningInstance() |
void |
remove(String proxyUserName) |
SshProxy |
start() |
SshProxy |
start(org.apache.sshd.common.NamedFactory<org.apache.sshd.common.channel.Channel> factory) |
void |
stop() |
protected org.apache.sshd.server.SshServer sshServer
protected org.apache.sshd.client.SshClient sshClient
public SshProxy(SshClientAndServerFactory sshClientAndServerFactory)
@Nullable public static SshProxy getRunningInstance()
@Nullable public SshProxy start()
@Nullable public SshProxy start(org.apache.sshd.common.NamedFactory<org.apache.sshd.common.channel.Channel> 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.CommandFactory createCommandFactory()
public String getHost()
public int getPort()
public Exception getClientInitializationException()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.