public class SshServer extends SshEngine implements ProtocolContextFactory<SshServerContext>, Closeable
Modifier and Type | Method and Description |
---|---|
protected void |
afterStart() |
protected void |
beforeStart() |
void |
close() |
protected void |
configureAuthentication(SshServerContext sshContext) |
protected void |
configureChannels(SshServerContext sshContext) |
protected void |
configureConnectionManager(SshServerContext sshContext) |
protected void |
configureFilesystem(SshServerContext sshContext) |
SshServerContext |
createContext(SshEngineContext daemonContext,
SocketChannel sc) |
SshKeyPair |
getKey() |
int |
getPort() |
addListener, addShutdownHook, connect, getContext, getDefaultInstance, getLastError, getReleaseDate, getVersion, isStarted, isStarting, processOpenSocket, registerAcceptor, registerConnector, registerHandler, registerHandler, removeAcceptor, removeListener, restart, restart, shutdownAsync, shutdownNow, startListeningInterface, startup
public int getPort()
public SshKeyPair getKey()
protected void beforeStart()
protected void afterStart()
protected void configureFilesystem(SshServerContext sshContext) throws IOException, SshException
IOException
SshException
protected void configureAuthentication(SshServerContext sshContext) throws IOException, SshException
IOException
SshException
protected void configureChannels(SshServerContext sshContext) throws IOException, SshException
IOException
SshException
protected void configureConnectionManager(SshServerContext sshContext) throws IOException, SshException
IOException
SshException
public SshServerContext createContext(SshEngineContext daemonContext, SocketChannel sc) throws IOException, SshException
createContext
in interface ProtocolContextFactory<SshServerContext>
IOException
SshException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017. All rights reserved.