Class ExampleSSHD
java.lang.Object
com.maverick.nio.Daemon
com.maverick.sshd.AbstractSshDaemon
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.
| 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 |
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.