public class CallbackClient extends java.lang.Object implements com.sshtools.synergy.ssh.ChannelFactoryListener<SshServerContext>
Constructor and Description |
---|
CallbackClient() |
Modifier and Type | Method and Description |
---|---|
void |
addHostKey(com.sshtools.common.ssh.components.SshKeyPair pair) |
protected void |
configureChannels(SshServerContext sshContext,
CallbackConfiguration config) |
protected void |
configureContext(SshServerContext sshContext,
CallbackConfiguration config) |
protected void |
configureFilesystem(SshServerContext sshContext,
CallbackConfiguration config) |
protected void |
configureForwarding(SshServerContext sshContext,
CallbackConfiguration config) |
SshServerContext |
createContext(com.sshtools.synergy.nio.SshEngineContext daemonContext,
CallbackConfiguration config) |
java.util.Collection<CallbackSession> |
getClients() |
protected java.util.concurrent.ExecutorService |
getExecutorService() |
com.sshtools.synergy.nio.SshEngine |
getSshEngine() |
boolean |
isConnected() |
protected void |
onClientStart(CallbackSession client,
com.sshtools.common.ssh.SshConnection connection) |
protected void |
onClientStarting(CallbackSession client) |
protected void |
onClientStop(CallbackSession client,
com.sshtools.common.ssh.SshConnection connection) |
protected void |
onClientStopping(CallbackSession client) |
void |
setChannelFactory(com.sshtools.synergy.ssh.ChannelFactory<SshServerContext> channelFactory) |
void |
setDefaultPolicies(java.lang.Object... policies) |
void |
setFileFactory(com.sshtools.common.policy.FileFactory fileFactory) |
void |
start(CallbackConfiguration config) |
void |
start(CallbackConfiguration config,
java.lang.String hostname,
int port) |
void |
start(CallbackSession client) |
void |
start(java.util.Collection<CallbackConfiguration> configs) |
void |
stop() |
void |
stop(CallbackSession client) |
public com.sshtools.synergy.nio.SshEngine getSshEngine()
protected java.util.concurrent.ExecutorService getExecutorService()
public void setDefaultPolicies(java.lang.Object... policies)
public void start(java.util.Collection<CallbackConfiguration> configs)
public void start(CallbackConfiguration config) throws java.io.IOException
java.io.IOException
public void start(CallbackConfiguration config, java.lang.String hostname, int port) throws java.io.IOException
java.io.IOException
public void start(CallbackSession client)
public boolean isConnected()
public java.util.Collection<CallbackSession> getClients()
protected void onClientStarting(CallbackSession client)
protected void onClientStopping(CallbackSession client)
protected void onClientStart(CallbackSession client, com.sshtools.common.ssh.SshConnection connection)
protected void onClientStop(CallbackSession client, com.sshtools.common.ssh.SshConnection connection)
public void stop(CallbackSession client)
public void stop()
public SshServerContext createContext(com.sshtools.synergy.nio.SshEngineContext daemonContext, CallbackConfiguration config) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
protected void configureContext(SshServerContext sshContext, CallbackConfiguration config)
protected void configureFilesystem(SshServerContext sshContext, CallbackConfiguration config)
protected void configureChannels(SshServerContext sshContext, CallbackConfiguration config)
protected void configureForwarding(SshServerContext sshContext, CallbackConfiguration config)
public void addHostKey(com.sshtools.common.ssh.components.SshKeyPair pair)
public void setChannelFactory(com.sshtools.synergy.ssh.ChannelFactory<SshServerContext> channelFactory)
public void setFileFactory(com.sshtools.common.policy.FileFactory fileFactory)
Copyright © 2021. All rights reserved.