Class ExampleSSHD

java.lang.Object
  extended by com.maverick.nio.Daemon
      extended by com.maverick.sshd.AbstractSshDaemon
          extended by ExampleSSHD

public class ExampleSSHD
extends AbstractSshDaemon

An example server that fulfils the basic requirements of the Maverick SSHD. To create a server simply extend the AbstractSshDaemon class and configure the server to your requirements inside the com.maverick.sshd.AbstractSshDaemon#configure(ConfigurationContext) method.


Method Summary
protected  void configure(DaemonContext context)
          This is where the server is configured; add the servers host keys and configure the authentication, file system and session providers.
static ExampleSSHD getInstance()
           
 String getVersionInformation()
           
static void main(String[] args)
           
 
Methods inherited from class com.maverick.sshd.AbstractSshDaemon
getReleaseDate, getVersion, postStartup, preStartup, startup
 
Methods inherited from class com.maverick.nio.Daemon
getContext, getEventService, isStarted, onShutdown, onStart, registerAcceptor, registerConnector, registerHandler, registerHandler, removeAcceptor, setEventService, shutdown, startListeningInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final ExampleSSHD getInstance()

configure

protected void configure(DaemonContext context)
                  throws IOException
This is where the server is configured; add the servers host keys and configure the authentication, file system and session providers. You can optionally define an access manager that will be consulted before giving a user access to individual SSH features.

Specified by:
configure in class Daemon
Parameters:
context -
Throws:
IOException

getVersionInformation

public String getVersionInformation()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.