Class SshdSsh.SshdServer

java.lang.Object
de.oktoflow.platform.support.ssh.sshd.SshdSsh.SshdServer
All Implemented Interfaces:
de.iip_ecosphere.platform.support.Server, de.iip_ecosphere.platform.support.ssh.Ssh.SshServer
Enclosing class:
SshdSsh

private class SshdSsh.SshdServer extends Object implements de.iip_ecosphere.platform.support.ssh.Ssh.SshServer
The SSH server with further setup options.
Author:
Holger Eichelberger, SSE
  • Field Details

    • server

      private org.apache.sshd.server.SshServer server
    • started

      private boolean started
    • address

      private de.iip_ecosphere.platform.support.ServerAddress address
    • authenticator

      private de.iip_ecosphere.platform.support.ssh.Ssh.Authenticator authenticator
    • shellCommand

      private String shellCommand
    • shellArgs

      private String[] shellArgs
    • hostKeyFile

      private File hostKeyFile
  • Constructor Details

    • SshdServer

      private SshdServer(de.iip_ecosphere.platform.support.ServerAddress address)
      Creates a server instance.
      Parameters:
      address - the server address
  • Method Details

    • start

      public de.iip_ecosphere.platform.support.ssh.Ssh.SshServer start()
      Specified by:
      start in interface de.iip_ecosphere.platform.support.Server
      Specified by:
      start in interface de.iip_ecosphere.platform.support.ssh.Ssh.SshServer
    • stop

      public void stop(boolean dispose)
      Specified by:
      stop in interface de.iip_ecosphere.platform.support.Server
    • setAuthenticator

      public void setAuthenticator(de.iip_ecosphere.platform.support.ssh.Ssh.Authenticator authenticator)
      Specified by:
      setAuthenticator in interface de.iip_ecosphere.platform.support.ssh.Ssh.SshServer
    • setShellInit

      public void setShellInit(String command, String... args)
      Specified by:
      setShellInit in interface de.iip_ecosphere.platform.support.ssh.Ssh.SshServer
    • setHostKey

      public void setHostKey(File hostKeyFile)
      Specified by:
      setHostKey in interface de.iip_ecosphere.platform.support.ssh.Ssh.SshServer
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface de.iip_ecosphere.platform.support.ssh.Ssh.SshServer