public class SshPlugin
extends net.je2sh.core.plugins.PluginLifeCycle
implements org.apache.sshd.server.auth.password.PasswordAuthenticator
This plugin creates a SshServer and manages its lifecycle.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IP_KEY |
static java.lang.String |
KEY_FILE |
static java.lang.String |
PORT_KEY |
static java.lang.String |
PROPERTIES_FILE |
| Constructor and Description |
|---|
SshPlugin() |
SshPlugin(java.util.Properties properties,
java.security.Principal principal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password,
org.apache.sshd.server.session.ServerSession session) |
void |
close() |
void |
run() |
public static final java.lang.String PROPERTIES_FILE
public static final java.lang.String KEY_FILE
public static final java.lang.String PORT_KEY
public static final java.lang.String IP_KEY
public SshPlugin()
throws java.io.IOException
java.io.IOExceptionpublic SshPlugin(java.util.Properties properties,
java.security.Principal principal)
throws java.io.IOException
java.io.IOExceptionpublic boolean authenticate(java.lang.String username,
java.lang.String password,
org.apache.sshd.server.session.ServerSession session)
throws org.apache.sshd.server.auth.password.PasswordChangeRequiredException
authenticate in interface org.apache.sshd.server.auth.password.PasswordAuthenticatororg.apache.sshd.server.auth.password.PasswordChangeRequiredExceptionpublic void run()
run in interface java.lang.Runnablerun in class net.je2sh.core.plugins.PluginLifeCyclepublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class net.je2sh.core.plugins.PluginLifeCycle