Class NettySshTtyBootstrap
java.lang.Object
org.aesh.terminal.ssh.netty.NettySshTtyBootstrap
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()org.apache.sshd.common.keyprovider.KeyPairProviderintgetPort()voidsetCharset(Charset charset) setKeyPairProvider(org.apache.sshd.common.keyprovider.KeyPairProvider keyPairProvider) setPasswordAuthenticator(org.apache.sshd.server.auth.password.PasswordAuthenticator passwordAuthenticator) setPort(int port) setPublicKeyAuthenticator(org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator publicKeyAuthenticator) voidstop()void
-
Constructor Details
-
NettySshTtyBootstrap
public NettySshTtyBootstrap()
-
-
Method Details
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
-
setPasswordAuthenticator
public NettySshTtyBootstrap setPasswordAuthenticator(org.apache.sshd.server.auth.password.PasswordAuthenticator passwordAuthenticator) -
setPublicKeyAuthenticator
public NettySshTtyBootstrap setPublicKeyAuthenticator(org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator publicKeyAuthenticator) -
start
public CompletableFuture<Void> start(Consumer<org.aesh.terminal.Connection> handler) throws Exception - Throws:
Exception
-
getKeyPairProvider
public org.apache.sshd.common.keyprovider.KeyPairProvider getKeyPairProvider() -
setKeyPairProvider
public NettySshTtyBootstrap setKeyPairProvider(org.apache.sshd.common.keyprovider.KeyPairProvider keyPairProvider) -
getCharset
-
setCharset
-
start
-
stop
- Throws:
InterruptedException
-
stop
-